Browse Source

[autoboot] Use ifconf() to configure network device

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 10 years ago
parent
commit
2525e55c19
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      src/usr/autoboot.c

+ 2
- 3
src/usr/autoboot.c View File

@@ -38,7 +38,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
38 38
 #include <ipxe/timer.h>
39 39
 #include <usr/ifmgmt.h>
40 40
 #include <usr/route.h>
41
-#include <usr/dhcpmgmt.h>
42 41
 #include <usr/imgmgmt.h>
43 42
 #include <usr/prompt.h>
44 43
 #include <usr/autoboot.h>
@@ -365,8 +364,8 @@ int netboot ( struct net_device *netdev ) {
365 364
 		goto err_ifopen;
366 365
 	ifstat ( netdev );
367 366
 
368
-	/* Configure device via DHCP */
369
-	if ( ( rc = dhcp ( netdev ) ) != 0 )
367
+	/* Configure device */
368
+	if ( ( rc = ifconf ( netdev, NULL ) ) != 0 )
370 369
 		goto err_dhcp;
371 370
 	route();
372 371
 

Loading…
Cancel
Save