diff options
author | Marty Connor | 2010-02-04 01:14:35 +0100 |
---|---|---|
committer | Marty Connor | 2010-02-04 01:14:35 +0100 |
commit | 422f3a6116aaa070fe51455fdd12fb042ce9409b (patch) | |
tree | 0ee1e2f36aa2f9a5fb825b55c422cfb1ae60350f /src/hci/shell_banner.c | |
parent | [release] Update version to 1.0.0+ post release (diff) | |
download | ipxe-422f3a6116aaa070fe51455fdd12fb042ce9409b.tar.gz ipxe-422f3a6116aaa070fe51455fdd12fb042ce9409b.tar.xz ipxe-422f3a6116aaa070fe51455fdd12fb042ce9409b.zip |
[shell_banner] Avoid printing Ctrl-B prompt if BANNER_TIMEOUT <= 0
Signed-off-by: Marty Connor <mdc@etherboot.org>
Diffstat (limited to 'src/hci/shell_banner.c')
-rw-r--r-- | src/hci/shell_banner.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hci/shell_banner.c b/src/hci/shell_banner.c index 8afefe3d..dbe37673 100644 --- a/src/hci/shell_banner.c +++ b/src/hci/shell_banner.c @@ -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 */ |