Only update f/w release status variable at start of line

This commit is contained in:
Simon Long 2020-07-07 09:26:35 +01:00
parent fe6cd25dd2
commit 5a7f883d76
2 changed files with 8 additions and 2 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
raspi-config (20200707) buster; urgency=medium
* Add boot ROM and boot order selection
-- Simon Long <simon@raspberrypi.com> Tue, 07 Jul 2020 09:24:56 +0100
raspi-config (20200601) buster; urgency=medium raspi-config (20200601) buster; urgency=medium
* Fix audio device check bug when used in non-English locale * Fix audio device check bug when used in non-English locale

View File

@ -1258,11 +1258,11 @@ do_boot_rom() {
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
case "$BOOTOPT" in case "$BOOTOPT" in
E1*) E1*)
sed /etc/default/rpi-eeprom-update -i -e "s/FIRMWARE_RELEASE_STATUS.*/FIRMWARE_RELEASE_STATUS=\"stable\"/" sed /etc/default/rpi-eeprom-update -i -e "s/^FIRMWARE_RELEASE_STATUS.*/FIRMWARE_RELEASE_STATUS=\"stable\"/"
EETYPE="Latest version" EETYPE="Latest version"
;; ;;
E2*) E2*)
sed /etc/default/rpi-eeprom-update -i -e "s/FIRMWARE_RELEASE_STATUS.*/FIRMWARE_RELEASE_STATUS=\"critical\"/" sed /etc/default/rpi-eeprom-update -i -e "s/^FIRMWARE_RELEASE_STATUS.*/FIRMWARE_RELEASE_STATUS=\"critical\"/"
EETYPE="Factory default" EETYPE="Factory default"
;; ;;
*) *)