From 27d83f63e5aac365c22896d4645090c80873f672 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 3 Feb 2010 16:13:28 -0800 Subject: gPXE: suppress the Ctrl+B banner Suppress the Ctrl+B banner and zero out the timeout. It's not very useful for an integrated product, and very visually annoying on NBP chainload. Signed-off-by: H. Peter Anvin --- gpxe/gpxe.diff | 27 +++++++++++++++++++++++++++ gpxe/src/config/general.h | 2 +- gpxe/src/hci/shell_banner.c | 3 +++ 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/gpxe/gpxe.diff b/gpxe/gpxe.diff index 3df08a21..184a0cd3 100644 --- a/gpxe/gpxe.diff +++ b/gpxe/gpxe.diff @@ -13,3 +13,30 @@ index 0a9e625..de51f9f 100644 #undef DOWNLOAD_PROTO_TFTM /* Multicast Trivial File Transfer Protocol */ #undef DOWNLOAD_PROTO_SLAM /* Scalable Local Area Multicast */ +diff --git a/gpxe/src/config/general.h b/gpxe/src/config/general.h +index de51f9f..2f5a938 100644 +--- a/gpxe/src/config/general.h ++++ b/gpxe/src/config/general.h +@@ -31,7 +31,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); + * Timer configuration + * + */ +-#define BANNER_TIMEOUT 20 /* Tenths of a second for which the shell ++#define BANNER_TIMEOUT 0 /* Tenths of a second for which the shell + banner should appear */ + + /* +diff --git a/gpxe/src/hci/shell_banner.c b/gpxe/src/hci/shell_banner.c +index 8afefe3..b92e08e 100644 +--- a/gpxe/src/hci/shell_banner.c ++++ b/gpxe/src/hci/shell_banner.c +@@ -41,6 +41,9 @@ 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 */ diff --git a/gpxe/src/config/general.h b/gpxe/src/config/general.h index de51f9f8..2f5a9387 100644 --- a/gpxe/src/config/general.h +++ b/gpxe/src/config/general.h @@ -31,7 +31,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); * Timer configuration * */ -#define BANNER_TIMEOUT 20 /* Tenths of a second for which the shell +#define BANNER_TIMEOUT 0 /* Tenths of a second for which the shell banner should appear */ /* diff --git a/gpxe/src/hci/shell_banner.c b/gpxe/src/hci/shell_banner.c index 8afefe3d..b92e08e3 100644 --- a/gpxe/src/hci/shell_banner.c +++ b/gpxe/src/hci/shell_banner.c @@ -41,6 +41,9 @@ 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 */ -- cgit v1.2.1