Browse Source

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

Signed-off-by: Marty Connor <mdc@etherboot.org>
tags/v1.20.1
Marty Connor 15 years ago
parent
commit
422f3a6116
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/hci/shell_banner.c

+ 4
- 0
src/hci/shell_banner.c View File

41
 	int wait_count;
41
 	int wait_count;
42
 	int key;
42
 	int key;
43
 
43
 
44
+	if ( BANNER_TIMEOUT <=  0 ) {
45
+		return enter_shell;
46
+	}
47
+
44
 	printf ( "\nPress Ctrl-B for the gPXE command line..." );
48
 	printf ( "\nPress Ctrl-B for the gPXE command line..." );
45
 
49
 
46
 	/* Wait for key */
50
 	/* Wait for key */

Loading…
Cancel
Save