if not installing on a Beaglebone then use sdb as the USB drive by default

This commit is contained in:
Bob Mottram 2014-12-08 20:49:43 +00:00
parent 5479d3b99d
commit 6da7429d74
1 changed files with 7 additions and 0 deletions

View File

@ -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}')