david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[shell_banner] Avoid printing Ctrl-B prompt if BANNER_TIMEOUT <= 0

Signed-off-by: Marty Connor <mdc@etherboot.org>
This commit is contained in:
Marty Connor 2010-02-03 19:14:35 -05:00
parent 5eea94e0a9
commit 422f3a6116
1 changed files with 4 additions and 0 deletions

View 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 */