From 422f3a6116aaa070fe51455fdd12fb042ce9409b Mon Sep 17 00:00:00 2001 From: Marty Connor Date: Wed, 3 Feb 2010 19:14:35 -0500 Subject: [PATCH] [shell_banner] Avoid printing Ctrl-B prompt if BANNER_TIMEOUT <= 0 Signed-off-by: Marty Connor --- src/hci/shell_banner.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hci/shell_banner.c b/src/hci/shell_banner.c index 8afefe3d..dbe37673 100644 --- a/src/hci/shell_banner.c +++ b/src/hci/shell_banner.c @@ -41,6 +41,10 @@ int shell_banner ( void ) { int wait_count; int key; + if ( BANNER_TIMEOUT <= 0 ) { + return enter_shell; + } + printf ( "\nPress Ctrl-B for the gPXE command line..." ); /* Wait for key */