[syslinux] [PATCH] simple menu: make ONTIMEOUT work with MENU HIDDEN
Sergey Vlasov
vsu at altlinux.ru
Thu Jun 4 08:14:48 PDT 2009
The command invoked when no keys were pressed for the specified time
(ONTIMEOUT) may be different from the menu item initially selected
when the menu is displayed (DEFAULT or MENU DEFAULT). Unfortunately,
this did not work together with MENU HIDDEN (which is exactly the case
when having a separate ONTIMEOUT command makes the most sense).
Signed-off-by: Sergey Vlasov <vsu at altlinux.ru>
---
com32/menu/menumain.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
This bugfix patch is for the syslinux-3.8x branch.
diff --git a/com32/menu/menumain.c b/com32/menu/menumain.c
index 81780ea..e5b6eb9 100644
--- a/com32/menu/menumain.c
+++ b/com32/menu/menumain.c
@@ -700,6 +700,8 @@ do_hidden_menu(void)
}
}
+ if (cm->ontimeout)
+ return cm->ontimeout;
return cm->menu_entries[cm->defentry]->cmdline; /* Default entry */
}
--
1.6.3.1.253.g5ec4c
More information about the Syslinux
mailing list