mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-24 07:06:42 +00:00
config-gui.sh: Update sizes of whiptail prompts
Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
parent
f6cc806738
commit
01594a823b
@ -90,7 +90,7 @@ while true; do
|
|||||||
CURRENT_OPTION=`grep 'CONFIG_BOOT_DEV=' /tmp/config | tail -n1 | cut -f2 -d '=' | tr -d '"'`
|
CURRENT_OPTION=`grep 'CONFIG_BOOT_DEV=' /tmp/config | tail -n1 | cut -f2 -d '=' | tr -d '"'`
|
||||||
if ! fdisk -l | grep "Disk /dev/" | cut -f2 -d " " | cut -f1 -d ":" > /tmp/disklist.txt ; then
|
if ! fdisk -l | grep "Disk /dev/" | cut -f2 -d " " | cut -f1 -d ":" > /tmp/disklist.txt ; then
|
||||||
whiptail $BG_COLOR_ERROR --title 'ERROR: No bootable devices found' \
|
whiptail $BG_COLOR_ERROR --title 'ERROR: No bootable devices found' \
|
||||||
--msgbox " $ERROR\n\n" 16 60
|
--msgbox " $ERROR\n\n" 0 80
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# filter out extraneous options
|
# filter out extraneous options
|
||||||
@ -121,7 +121,7 @@ while true; do
|
|||||||
if ! mount -o ro $SELECTED_FILE /boot 2>/tmp/error ; then
|
if ! mount -o ro $SELECTED_FILE /boot 2>/tmp/error ; then
|
||||||
ERROR=`cat /tmp/error`
|
ERROR=`cat /tmp/error`
|
||||||
whiptail $BG_COLOR_ERROR --title 'ERROR: unable to mount /boot' \
|
whiptail $BG_COLOR_ERROR --title 'ERROR: unable to mount /boot' \
|
||||||
--msgbox " $ERROR\n\n" 16 60
|
--msgbox " $ERROR\n\n" 0 80
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ while true; do
|
|||||||
combine_configs
|
combine_configs
|
||||||
|
|
||||||
whiptail --title 'Config change successful' \
|
whiptail --title 'Config change successful' \
|
||||||
--msgbox "The /boot device was successfully changed to $SELECTED_FILE" 16 60
|
--msgbox "The /boot device was successfully changed to $SELECTED_FILE" 0 80
|
||||||
;;
|
;;
|
||||||
"s" )
|
"s" )
|
||||||
read_rom /tmp/config-gui.rom
|
read_rom /tmp/config-gui.rom
|
||||||
@ -140,7 +140,7 @@ while true; do
|
|||||||
--yesno "This will reflash your BIOS with the updated version\n\nDo you want to proceed?" 0 80) then
|
--yesno "This will reflash your BIOS with the updated version\n\nDo you want to proceed?" 0 80) then
|
||||||
/bin/flash.sh /tmp/config-gui.rom
|
/bin/flash.sh /tmp/config-gui.rom
|
||||||
whiptail --title 'BIOS Updated Successfully' \
|
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
|
--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" 0 80
|
||||||
/bin/reboot
|
/bin/reboot
|
||||||
else
|
else
|
||||||
exit 0
|
exit 0
|
||||||
@ -171,7 +171,7 @@ while true; do
|
|||||||
/bin/tpm-reset
|
/bin/tpm-reset
|
||||||
fi
|
fi
|
||||||
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" 0 80
|
||||||
/bin/reboot
|
/bin/reboot
|
||||||
else
|
else
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user