Pārlūkot izejas kodu

[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 14 gadus atpakaļ
vecāks
revīzija
422f3a6116
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4
    0
      src/hci/shell_banner.c

+ 4
- 0
src/hci/shell_banner.c Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt