summaryrefslogtreecommitdiffstats
path: root/src/core/main.c
diff options
context:
space:
mode:
authorMichael Brown2006-12-20 01:26:01 +0100
committerMichael Brown2006-12-20 01:26:01 +0100
commit38ad706b0896f789382b0123b911fb81637834c2 (patch)
tree0581c3580e78bb58e2156162172d54246749b985 /src/core/main.c
parentSeparated out (and tidied up) shell banner code (diff)
downloadipxe-38ad706b0896f789382b0123b911fb81637834c2.tar.gz
ipxe-38ad706b0896f789382b0123b911fb81637834c2.tar.xz
ipxe-38ad706b0896f789382b0123b911fb81637834c2.zip
Use new minimal shell
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 4a78d751..191ba841 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -31,6 +31,8 @@ Literature dealing with the network protocols:
#include <gpxe/device.h>
#include <gpxe/heap.h>
#include <gpxe/netdevice.h>
+#include <gpxe/shell.h>
+#include <gpxe/shell_banner.h>
/* Linker symbols */
extern char _bss[], _ebss[];
@@ -155,9 +157,12 @@ int main ( void ) {
call_init_fns ();
probe_devices();
+ if ( shell_banner() ) {
+ shell();
+ }
+
netdev = next_netdev ();
if ( netdev ) {
- cmdl_start();
test_dhcp ( netdev );
} else {
printf ( "No network device found\n" );