Explorar el Código

[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 hace 14 años
padre
commit
422f3a6116
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4
    0
      src/hci/shell_banner.c

+ 4
- 0
src/hci/shell_banner.c Ver fichero

@@ -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 */

Loading…
Cancelar
Guardar