[syslinux:master] gPXE: suppress the Ctrl+B banner
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Wed Feb 3 16:15:03 PST 2010
Commit-ID: 27d83f63e5aac365c22896d4645090c80873f672
Gitweb: http://syslinux.zytor.com/commit/27d83f63e5aac365c22896d4645090c80873f672
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 3 Feb 2010 16:13:28 -0800
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 3 Feb 2010 16:13:28 -0800
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 <hpa at zytor.com>
---
gpxe/gpxe.diff | 27 +++++++++++++++++++++++++++
gpxe/src/config/general.h | 2 +-
gpxe/src/hci/shell_banner.c | 3 +++
3 files changed, 31 insertions(+), 1 deletions(-)
diff --git a/gpxe/gpxe.diff b/gpxe/gpxe.diff
index 3df08a2..184a0cd 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 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 */
More information about the Syslinux-commits
mailing list