[shell_banner] Avoid printing Ctrl-B prompt if BANNER_TIMEOUT <= 0
authorMarty Connor <mdc@etherboot.org>
Thu, 4 Feb 2010 00:14:35 +0000 (19:14 -0500)
committerMarty Connor <mdc@etherboot.org>
Thu, 4 Feb 2010 00:14:35 +0000 (19:14 -0500)
Signed-off-by: Marty Connor <mdc@etherboot.org>
src/hci/shell_banner.c

index 8afefe3..dbe3767 100644 (file)
@@ -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 */