mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 12:10:07 +09:00
More boot order options
This commit is contained in:
parent
74885481d8
commit
a94552d911
15
raspi-config
15
raspi-config
@ -1359,8 +1359,9 @@ EOF
|
|||||||
do_boot_order() {
|
do_boot_order() {
|
||||||
if [ "$INTERACTIVE" = True ]; then
|
if [ "$INTERACTIVE" = True ]; then
|
||||||
BOOTOPT=$(whiptail --title "Raspberry Pi Software Configuration Tool (raspi-config)" --menu "Boot Device Order" $WT_HEIGHT $WT_WIDTH $WT_MENU_HEIGHT \
|
BOOTOPT=$(whiptail --title "Raspberry Pi Software Configuration Tool (raspi-config)" --menu "Boot Device Order" $WT_HEIGHT $WT_WIDTH $WT_MENU_HEIGHT \
|
||||||
"B1 USB Boot" "Boot from USB device if SD card boot fails" \
|
"B1 SD Card Boot" "Boot from SD Card if available, otherwise boot from USB" \
|
||||||
"B2 Network Boot" "Boot from network if SD card boot fails" \
|
"B2 USB Boot" "Boot from USB if available, otherwise boot from SD Card" \
|
||||||
|
"B3 Network Boot" "Boot from network if SD card boot fails" \
|
||||||
3>&1 1>&2 2>&3)
|
3>&1 1>&2 2>&3)
|
||||||
else
|
else
|
||||||
BOOTOPT=$1
|
BOOTOPT=$1
|
||||||
@ -1397,9 +1398,17 @@ do_boot_order() {
|
|||||||
else
|
else
|
||||||
sed $EECFG -i -e "s/^BOOT_ORDER=.*/BOOT_ORDER=0xf41/"
|
sed $EECFG -i -e "s/^BOOT_ORDER=.*/BOOT_ORDER=0xf41/"
|
||||||
fi
|
fi
|
||||||
STATUS="USB device"
|
STATUS="SD Card"
|
||||||
;;
|
;;
|
||||||
B2*)
|
B2*)
|
||||||
|
if ! grep -q "BOOT_ORDER" $EECFG ; then
|
||||||
|
sed $EECFG -i -e "\$a[all]\nBOOT_ORDER=0xf14"
|
||||||
|
else
|
||||||
|
sed $EECFG -i -e "s/^BOOT_ORDER=.*/BOOT_ORDER=0xf14/"
|
||||||
|
fi
|
||||||
|
STATUS="USB"
|
||||||
|
;;
|
||||||
|
B3*)
|
||||||
if ! grep -q "BOOT_ORDER" $EECFG ; then
|
if ! grep -q "BOOT_ORDER" $EECFG ; then
|
||||||
sed $EECFG -i -e "\$a[all]\nBOOT_ORDER=0xf21"
|
sed $EECFG -i -e "\$a[all]\nBOOT_ORDER=0xf21"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user