Include sda when detecting usb drive

This commit is contained in:
Bob Mottram 2017-06-23 15:49:46 +01:00
parent 3ee2b0e2ed
commit 4c62933e5d
1 changed files with 3 additions and 0 deletions

View File

@ -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