config-gui: fix Save Config option

when commit [928f003] config-gui: add 'Full Reset' option
was added, the bottom end of the save config option was
accidentally truncated; restore it to fix save config option

Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
This commit is contained in:
Matt DeVillier 2019-11-18 11:13:27 -06:00
parent 5a4cb4acbb
commit 0599ce97af
No known key found for this signature in database
GPG Key ID: 2BBB776A35B978FD

View File

@ -116,6 +116,16 @@ while true; do
cbfs -o /tmp/config-gui.rom -d "heads/initrd/etc/config.user" cbfs -o /tmp/config-gui.rom -d "heads/initrd/etc/config.user"
fi fi
cbfs -o /tmp/config-gui.rom -a "heads/initrd/etc/config.user" -f /etc/config.user cbfs -o /tmp/config-gui.rom -a "heads/initrd/etc/config.user" -f /etc/config.user
if (whiptail --title 'Update ROM?' \
--yesno "This will reflash your BIOS with the updated version\n\nDo you want to proceed?" 16 90) then
/bin/flash.sh /tmp/config-gui.rom
whiptail --title 'BIOS Updated Successfully' \
--msgbox "BIOS updated successfully.\n\nIf your keys have changed, be sure to re-sign all files in /boot\nafter you reboot.\n\nPress Enter to reboot" 16 60
/bin/reboot
else
exit 0
fi
;; ;;
"r" ) "r" )
# prompt for confirmation # prompt for confirmation
@ -150,6 +160,8 @@ while true; do
whiptail --title 'Configuration Reset Updated Successfully' \ whiptail --title 'Configuration Reset Updated Successfully' \
--msgbox "Configuration reset and BIOS updated successfully.\n\nPress Enter to reboot" 16 60 --msgbox "Configuration reset and BIOS updated successfully.\n\nPress Enter to reboot" 16 60
/bin/reboot /bin/reboot
else
exit 0
fi fi
;; ;;
esac esac