Skip to content

Commit 6f438a2

Browse files
committed
Changed timeout behaviour
1 parent efb3e7a commit 6f438a2

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dnl (such as BUILD_CC, BUILD_CFLAGS, etc.) for the build type and variables
3131
dnl with the prefix "TARGET_" (such as TARGET_CC, TARGET_CFLAGS, etc.) are
3232
dnl used for the target type. See INSTALL for full list of variables.
3333

34-
AC_INIT([GRUB],[2.04],[[email protected]])
34+
AC_INIT([GRUB],[2.04~nokeymod1],[[email protected]])
3535

3636
AC_CONFIG_AUX_DIR([build-aux])
3737

grub-core/normal/menu.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -693,21 +693,14 @@ run_menu (grub_menu_t menu, int nested, int *auto_boot)
693693
grub_env_unset ("timeout");
694694
*auto_boot = 1;
695695
menu_fini ();
696-
return default_entry;
696+
return current_entry;
697697
}
698698

699699
c = grub_getkey_noblock ();
700700

701701
/* Negative values are returned on error. */
702702
if ((c != GRUB_TERM_NO_KEY) && (c > 0))
703703
{
704-
if (timeout >= 0)
705-
{
706-
grub_env_unset ("timeout");
707-
grub_env_unset ("fallback");
708-
clear_timeout ();
709-
}
710-
711704
switch (c)
712705
{
713706
case GRUB_TERM_KEY_HOME:

0 commit comments

Comments
 (0)