Browse Source

[autoboot] Use ifconf() to configure network device

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 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
 #include <ipxe/timer.h>
38
 #include <ipxe/timer.h>
39
 #include <usr/ifmgmt.h>
39
 #include <usr/ifmgmt.h>
40
 #include <usr/route.h>
40
 #include <usr/route.h>
41
-#include <usr/dhcpmgmt.h>
42
 #include <usr/imgmgmt.h>
41
 #include <usr/imgmgmt.h>
43
 #include <usr/prompt.h>
42
 #include <usr/prompt.h>
44
 #include <usr/autoboot.h>
43
 #include <usr/autoboot.h>
365
 		goto err_ifopen;
364
 		goto err_ifopen;
366
 	ifstat ( netdev );
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
 		goto err_dhcp;
369
 		goto err_dhcp;
371
 	route();
370
 	route();
372
 
371
 

Loading…
Cancel
Save