summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/main.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index e2b4e3e2e..35f31c2c1 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -18,8 +18,9 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/init.h>
#include <ipxe/features.h>
#include <ipxe/shell.h>
-#include <ipxe/shell_banner.h>
#include <ipxe/image.h>
+#include <ipxe/keys.h>
+#include <usr/prompt.h>
#include <usr/autoboot.h>
#include <config/general.h>
@@ -28,6 +29,21 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define CYAN "\033[36m"
/**
+ * Prompt for shell entry
+ *
+ * @ret enter_shell User wants to enter shell
+ */
+static int shell_banner ( void ) {
+
+ /* Skip prompt if timeout is zero */
+ if ( BANNER_TIMEOUT <= 0 )
+ return 0;
+
+ return ( prompt ( "\nPress Ctrl-B for the iPXE command line...",
+ ( BANNER_TIMEOUT * 100 ), CTRL_B ) == 0 );
+}
+
+/**
* Main entry point
*
* @ret rc Return status code