From 6da7429d7446fde2fea6fefe3ce3dad4db95f1fe Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 8 Dec 2014 20:49:43 +0000 Subject: [PATCH] if not installing on a Beaglebone then use sdb as the USB drive by default --- install-freedombone.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install-freedombone.sh b/install-freedombone.sh index 6132d84d..18d056cc 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -352,6 +352,13 @@ function argument_checks { } function read_configuration { + # if not installing on a Beaglebone then use sdb as the USB drive by default + if [ ! $INSTALLING_ON_BBB ]; then + if [[ $USB_DRIVE == /dev/sda1 ]]; then + USB_DRIVE=/dev/sdb1 + fi + fi + if [ -f $CONFIGURATION_FILE ]; then if grep -q "LOCAL_NETWORK_STATIC_IP_ADDRESS" $CONFIGURATION_FILE; then LOCAL_NETWORK_STATIC_IP_ADDRESS=$(grep "LOCAL_NETWORK_STATIC_IP_ADDRESS" $CONFIGURATION_FILE | awk -F '=' '{print $2}')