mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-24 07:06:42 +00:00
Merge pull request #549 from kylerankin/flash_script_ui
Improve flash GUI documentation
This commit is contained in:
commit
2ebf8e2c1a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user