From 4c62933e5d02d6ecc3f8b307175141bddb174b38 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 23 Jun 2017 15:49:46 +0100 Subject: [PATCH] Include sda when detecting usb drive --- src/freedombone-utils-setup | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/freedombone-utils-setup b/src/freedombone-utils-setup index 3af30c15..c369bc3e 100755 --- a/src/freedombone-utils-setup +++ b/src/freedombone-utils-setup @@ -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