Explorar el Código

Use new minimal shell

tags/v0.9.3
Michael Brown hace 17 años
padre
commit
38ad706b08
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6
    1
      src/core/main.c

+ 6
- 1
src/core/main.c Ver fichero

31
 #include <gpxe/device.h>
31
 #include <gpxe/device.h>
32
 #include <gpxe/heap.h>
32
 #include <gpxe/heap.h>
33
 #include <gpxe/netdevice.h>
33
 #include <gpxe/netdevice.h>
34
+#include <gpxe/shell.h>
35
+#include <gpxe/shell_banner.h>
34
 
36
 
35
 /* Linker symbols */
37
 /* Linker symbols */
36
 extern char _bss[], _ebss[];
38
 extern char _bss[], _ebss[];
155
 	call_init_fns ();
157
 	call_init_fns ();
156
 	probe_devices();
158
 	probe_devices();
157
 
159
 
160
+	if ( shell_banner() ) {
161
+		shell();
162
+	}
163
+
158
 	netdev = next_netdev ();
164
 	netdev = next_netdev ();
159
 	if ( netdev ) {
165
 	if ( netdev ) {
160
-		cmdl_start();
161
 		test_dhcp ( netdev );
166
 		test_dhcp ( netdev );
162
 	} else {
167
 	} else {
163
 		printf ( "No network device found\n" );
168
 		printf ( "No network device found\n" );

Loading…
Cancelar
Guardar