2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-26 03:09:12 +00:00

[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

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