mirror of
https://github.com/ipxe/ipxe
synced 2026-04-16 03:00:10 +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 wait_count;
|
||||||
int key;
|
int key;
|
||||||
|
|
||||||
|
if ( BANNER_TIMEOUT <= 0 ) {
|
||||||
|
return enter_shell;
|
||||||
|
}
|
||||||
|
|
||||||
printf ( "\nPress Ctrl-B for the gPXE command line..." );
|
printf ( "\nPress Ctrl-B for the gPXE command line..." );
|
||||||
|
|
||||||
/* Wait for key */
|
/* Wait for key */
|
||||||
|
|||||||
Reference in New Issue
Block a user