normal_exit command
This commit is contained in:
parent
0e76d18c5b
commit
6066889c88
4 changed files with 54 additions and 15 deletions
|
@ -344,6 +344,9 @@ run_menu (grub_menu_t menu, int nested, int *auto_boot)
|
|||
int c;
|
||||
timeout = grub_menu_get_timeout ();
|
||||
|
||||
if (grub_normal_exit_level)
|
||||
return -1;
|
||||
|
||||
if (timeout > 0)
|
||||
{
|
||||
grub_uint64_t current_time;
|
||||
|
@ -554,6 +557,9 @@ grub_show_menu (grub_menu_t menu, int nested)
|
|||
err1 = show_menu (menu, nested);
|
||||
grub_print_error ();
|
||||
|
||||
if (grub_normal_exit_level)
|
||||
break;
|
||||
|
||||
err2 = grub_auth_check_authentication (NULL);
|
||||
if (err2)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue