Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[shell_banner] Avoid printing Ctrl-B prompt if BANNER_TIMEOUT <= 0
Signed-off-by: Marty Connor <mdc@etherboot.org>
  • Loading branch information
Marty Connor committed Feb 4, 2010
1 parent 5eea94e commit 422f3a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hci/shell_banner.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 422f3a6

Please sign in to comment.