Tell no_bus_info- rather than not_usb- if lsblkd -o TRAN fails
This commit is contained in:
parent
5e727b43ad
commit
a09ed16fc3
@ -385,10 +385,6 @@ list_devices() {
|
|||||||
else
|
else
|
||||||
transports=$("$lsblk_cmd" -n -o TRAN /dev/"$name")
|
transports=$("$lsblk_cmd" -n -o TRAN /dev/"$name")
|
||||||
fi
|
fi
|
||||||
if test -z "$transports"
|
|
||||||
then
|
|
||||||
transports=lsblk_failed_tran
|
|
||||||
fi
|
|
||||||
for trans in $transports
|
for trans in $transports
|
||||||
do
|
do
|
||||||
if test "$trans" = "usb" -o "$trans" = "mmcblk"
|
if test "$trans" = "usb" -o "$trans" = "mmcblk"
|
||||||
|
Loading…
Reference in New Issue
Block a user