mirror of
https://github.com/ipxe/ipxe
synced 2025-12-08 02:10:25 +03: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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user