From: Marty Connor Date: Thu, 4 Feb 2010 00:14:35 +0000 (-0500) Subject: [shell_banner] Avoid printing Ctrl-B prompt if BANNER_TIMEOUT <= 0 X-Git-Tag: v1.20.1~2738 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=422f3a6116aaa070fe51455fdd12fb042ce9409b;p=thirdparty%2Fipxe.git [shell_banner] Avoid printing Ctrl-B prompt if BANNER_TIMEOUT <= 0 Signed-off-by: Marty Connor --- diff --git a/src/hci/shell_banner.c b/src/hci/shell_banner.c index 8afefe3df..dbe376739 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 */