瀏覽代碼

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

Bob Mottram 10 年之前
父節點
當前提交
6da7429d74
共有 1 個檔案被更改,包括 7 行新增0 行删除
  1. 7
    0
      install-freedombone.sh

+ 7
- 0
install-freedombone.sh 查看文件

@@ -352,6 +352,13 @@ function argument_checks {
352 352
 }
353 353
 
354 354
 function read_configuration {
355
+  # if not installing on a Beaglebone then use sdb as the USB drive by default
356
+  if [ ! $INSTALLING_ON_BBB ]; then
357
+      if [[ $USB_DRIVE == /dev/sda1 ]]; then
358
+          USB_DRIVE=/dev/sdb1
359
+      fi
360
+  fi
361
+
355 362
   if [ -f $CONFIGURATION_FILE ]; then
356 363
       if grep -q "LOCAL_NETWORK_STATIC_IP_ADDRESS" $CONFIGURATION_FILE; then
357 364
           LOCAL_NETWORK_STATIC_IP_ADDRESS=$(grep "LOCAL_NETWORK_STATIC_IP_ADDRESS" $CONFIGURATION_FILE | awk -F '=' '{print $2}')