Merge pull request #549 from kylerankin/flash_script_ui

Improve flash GUI documentation
This commit is contained in:
tlaurion 2019-04-20 22:48:27 -04:00 committed by GitHub
commit 2ebf8e2c1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,10 +70,10 @@ file_selector() {
while true; do while true; do
unset menu_choice unset menu_choice
whiptail --clear --title "BIOS Management Menu" \ whiptail --clear --title "Firmware Management Menu" \
--menu 'Select the BIOS function to perform' 20 90 10 \ --menu "Select the firmware function to perform\n\nRetaining settings copies existing settings to the new firmware:\n* Keeps your GPG keyring\n* Keeps changes to the default /boot device\n\nErasing settings uses the new firmware as-is:\n* Erases any existing GPG keyring\n* Restores firmware to default factory settings\n\nIf you are just updating your firmware, you probably want to retain\nyour settings." 20 90 10 \
'f' ' Flash the BIOS with a new ROM' \ 'f' ' Flash the firmware with a new ROM, retain settings' \
'c' ' Flash the BIOS with a new cleaned ROM' \ 'c' ' Flash the firmware with a new ROM, erase settings' \
'x' ' Exit' \ 'x' ' Exit' \
2>/tmp/whiptail || recovery "GUI menu failed" 2>/tmp/whiptail || recovery "GUI menu failed"
@ -104,7 +104,7 @@ while true; do
/bin/flash.sh "$ROM" /bin/flash.sh "$ROM"
fi fi
whiptail --title 'ROM Flashed Successfully' \ whiptail --title 'ROM Flashed Successfully' \
--msgbox "$ROM flashed successfully. Press Enter to reboot" 16 60 --msgbox "$ROM flashed successfully.\nPress Enter to reboot" 16 60
umount /media umount /media
/bin/reboot /bin/reboot
else else