mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +09:00
Format date in error message; append BOOT_ORDER in relevant section
This commit is contained in:
parent
0b91529ef6
commit
089f4f033c
@ -1205,7 +1205,7 @@ do_boot_order() {
|
|||||||
done
|
done
|
||||||
if [ "$FILNAME" = "none" ]; then
|
if [ "$FILNAME" = "none" ]; then
|
||||||
if [ "$INTERACTIVE" = True ]; then
|
if [ "$INTERACTIVE" = True ]; then
|
||||||
whiptail --msgbox "No EEPROM bin file found for version $CURDATE - aborting" 20 60 2
|
whiptail --msgbox "No EEPROM bin file found for version `date -d $CURDATE +%Y-%m-%d` - aborting" 20 60 2
|
||||||
fi
|
fi
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@ -1214,7 +1214,7 @@ do_boot_order() {
|
|||||||
case "$BOOTOPT" in
|
case "$BOOTOPT" in
|
||||||
B1*)
|
B1*)
|
||||||
if ! grep -q "BOOT_ORDER" $EECFG ; then
|
if ! grep -q "BOOT_ORDER" $EECFG ; then
|
||||||
sed $EECFG -i -e "\$aBOOT_ORDER=0xf41"
|
sed $EECFG -i -e "\$a[all]\nBOOT_ORDER=0xf41"
|
||||||
else
|
else
|
||||||
sed $EECFG -i -e "s/^BOOT_ORDER=.*/BOOT_ORDER=0xf41/"
|
sed $EECFG -i -e "s/^BOOT_ORDER=.*/BOOT_ORDER=0xf41/"
|
||||||
fi
|
fi
|
||||||
@ -1222,7 +1222,7 @@ do_boot_order() {
|
|||||||
;;
|
;;
|
||||||
B2*)
|
B2*)
|
||||||
if ! grep -q "BOOT_ORDER" $EECFG ; then
|
if ! grep -q "BOOT_ORDER" $EECFG ; then
|
||||||
sed $EECFG -i -e "\$aBOOT_ORDER=0xf21"
|
sed $EECFG -i -e "\$a[all]\nBOOT_ORDER=0xf21"
|
||||||
else
|
else
|
||||||
sed $EECFG -i -e "s/^BOOT_ORDER=.*/BOOT_ORDER=0xf21/"
|
sed $EECFG -i -e "s/^BOOT_ORDER=.*/BOOT_ORDER=0xf21/"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user