Merge branch 'gui_for_changed_boot_entries' of https://github.com/kylerankin/heads

This commit is contained in:
Trammell hudson 2018-04-10 15:44:49 -04:00
commit 0eff9914ea
Failed to extract signature

View File

@ -210,7 +210,12 @@ default_select() {
expectedoption=`cat $TMP_DEFAULT_FILE` expectedoption=`cat $TMP_DEFAULT_FILE`
option=`head -n $default_index $TMP_MENU_FILE | tail -1` option=`head -n $default_index $TMP_MENU_FILE | tail -1`
if [ "$option" != "$expectedoption" ]; then if [ "$option" != "$expectedoption" ]; then
die "!!! Boot entry has changed - please set a new default" if [ "$gui_menu" = "y" ]; then
whiptail --title 'ERROR: Boot Entry Has Changed' \
--msgbox "The list of boot entries has changed\n\nPlease set a new default" 16 60
fi
warn "!!! Boot entry has changed - please set a new default"
return
fi fi
parse_option parse_option