From 089f4f033ca894f2313593bf999ff27ae4ad17ea Mon Sep 17 00:00:00 2001 From: Simon Long Date: Wed, 13 May 2020 16:30:09 +0100 Subject: [PATCH] Format date in error message; append BOOT_ORDER in relevant section --- raspi-config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/raspi-config b/raspi-config index e0c60ac..c561828 100755 --- a/raspi-config +++ b/raspi-config @@ -1205,7 +1205,7 @@ do_boot_order() { done if [ "$FILNAME" = "none" ]; 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 return 1 fi @@ -1214,7 +1214,7 @@ do_boot_order() { case "$BOOTOPT" in B1*) if ! grep -q "BOOT_ORDER" $EECFG ; then - sed $EECFG -i -e "\$aBOOT_ORDER=0xf41" + sed $EECFG -i -e "\$a[all]\nBOOT_ORDER=0xf41" else sed $EECFG -i -e "s/^BOOT_ORDER=.*/BOOT_ORDER=0xf41/" fi @@ -1222,7 +1222,7 @@ do_boot_order() { ;; B2*) if ! grep -q "BOOT_ORDER" $EECFG ; then - sed $EECFG -i -e "\$aBOOT_ORDER=0xf21" + sed $EECFG -i -e "\$a[all]\nBOOT_ORDER=0xf21" else sed $EECFG -i -e "s/^BOOT_ORDER=.*/BOOT_ORDER=0xf21/" fi