You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--menu "This menu lets you change settings for the current BIOS session.\n\nAll changes will revert after a reboot,\n\nunless you also save them to the running BIOS." 0 80 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* Clears out /boot signatures\n\nIf you are just updating your firmware, you probably want to retain\nyour settings." 0 80 10 \
47
47
'f'' Flash the firmware with a new ROM, retain settings' \
48
48
'c'' Flash the firmware with a new ROM, erase settings' \
@@ -56,7 +56,7 @@ while true; do
56
56
exit 0
57
57
;;
58
58
f | c)
59
-
if (whiptail $BG_COLOR_WARNING --title 'Flash the BIOS with a new ROM' \
59
+
if (whiptail_warning --title 'Flash the BIOS with a new ROM' \
60
60
--yesno "You will need to insert a USB drive containing your BIOS image (*.zip or\n*.$UPDATE_PLAIN_EXT).\n\nAfter you select this file, this program will reflash your BIOS.\n\nDo you want to proceed?" 0 80);then
--yesno "This will replace your current ROM with:\n\n$PKG_FILE_DISPLAY\n\nDo you want to proceed?" 0 80;then
120
120
exit 1
121
121
fi
@@ -136,7 +136,7 @@ while true; do
136
136
fi
137
137
ROM="$PKG_EXTRACT/$(basename "$PKG_FILE")"
138
138
ROM_HASH=$(sha256sum "$ROM"| awk '{print $1}')
139
-
if! (whiptail $CONFIG_ERROR_BG_COLOR --title 'Flash ROM without integrity check?' \
139
+
if! (whiptail_error --title 'Flash ROM without integrity check?' \
140
140
--yesno "You have provided a *.$UPDATE_PLAIN_EXT file. The integrity of the file can not be\nchecked automatically for this file type.\n\nROM: $PKG_FILE_DISPLAY\nSHA256SUM: $ROM_HASH\n\nIf you do not know how to check the file integrity yourself,\nyou should use a *.zip file instead.\n\nIf the file is damaged, you will not be able to boot anymore.\nDo you want to proceed flashing without file integrity check?" 0 80);then
Copy file name to clipboardExpand all lines: initrd/bin/gpg-gui.sh
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ gpg_flash_rom() {
65
65
if (whiptail --title 'BIOS Flashed Successfully' \
66
66
--yesno "Would you like to update the checksums and sign all of the files in /boot?\n\nYou will need your GPG key to continue and this will modify your disk.\n\nOtherwise the system will reboot immediately." 0 80) then
--msgbox "Unable to copy ${GPG_GEN_KEY}.asc to /media" 0 80
94
94
fi
95
95
umount /media
@@ -98,7 +98,7 @@ gpg_post_gen_mgmt() {
98
98
--yesno "Would you like to add the GPG public key you generated to the BIOS?\n\nThis makes it a trusted key used to sign files in /boot\n\n" 0 80) then
0 commit comments