Include sda when detecting usb drive
This commit is contained in:
parent
3ee2b0e2ed
commit
4c62933e5d
|
@ -93,6 +93,9 @@ function detect_usb_drive {
|
|||
if [[ "$1" == "nopath" ]]; then
|
||||
partition_number=''
|
||||
fi
|
||||
if [ -b /dev/sda${partition_number} ]; then
|
||||
USB_DRIVE=/dev/sda${partition_number}
|
||||
fi
|
||||
if [ -b /dev/sdb${partition_number} ]; then
|
||||
USB_DRIVE=/dev/sdb${partition_number}
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue