mirror of
https://github.com/AuxXxilium/arc-c.git
synced 2024-11-24 07:21:07 +07:00
storage: fix mmc
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
0daa0a4761
commit
6d1a9ee1b5
@ -91,7 +91,6 @@ function getmap() {
|
||||
if [ $(ls -l /sys/class/mmc_host | grep mmc_host | wc -l) -gt 0 ]; then
|
||||
for PCI in $(lspci -d ::805 | awk '{print $1}'); do
|
||||
NAME=$(lspci -s "${PCI}" | sed "s/\ .*://")
|
||||
PORTNUM=$(ls -l /sys/class/mmc_host | grep "${PCI}" | wc -l)
|
||||
PORTNUM=$(ls -l /sys/block/mmc* | grep "${PCI}" | wc -l)
|
||||
[ ${PORTNUM} -eq 0 ] && continue
|
||||
MMCDRIVES=$((${MMCDRIVES} + ${PORTNUM}))
|
||||
|
Loading…
Reference in New Issue
Block a user