ソースを参照

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