From 317d6c57d5e9bc9d363df8e0e395058b5985882e Mon Sep 17 00:00:00 2001 From: Heiko Schocher Date: Mon, 16 Jan 2012 21:13:35 +0000 Subject: common, menu: show menu on startup if CONFIG_MENU_SHOW is defined show a menu on startup instead running the shell. Signed-off-by: Heiko Schocher Cc: Jason Hobbs Cc: Mike Frysinger Acked-by: Jason Hobbs --- common/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common') diff --git a/common/main.c b/common/main.c index 248744ba74..91e888fd3c 100644 --- a/common/main.c +++ b/common/main.c @@ -41,6 +41,7 @@ #include #include +#include #if defined(CONFIG_SILENT_CONSOLE) || defined(CONFIG_POST) || defined(CONFIG_CMDLINE_EDITING) DECLARE_GLOBAL_DATA_PTR; @@ -372,6 +373,9 @@ void main_loop (void) debug ("### main_loop entered: bootdelay=%d\n\n", bootdelay); +#if defined(CONFIG_MENU_SHOW) + bootdelay = menu_show(bootdelay); +#endif # ifdef CONFIG_BOOT_RETRY_TIME init_cmd_timeout (); # endif /* CONFIG_BOOT_RETRY_TIME */ -- cgit v1.2.3