]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[autoboot] Use ifconf() to configure network device
authorMichael Brown <mcb30@ipxe.org>
Mon, 4 Nov 2013 23:06:45 +0000 (23:06 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 5 Nov 2013 17:42:50 +0000 (17:42 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/usr/autoboot.c

index 276fb3db8321e15b9e09d6646783d52fa2960ec2..6d6419d63c291006a8d2880e6cc70525daff33d4 100644 (file)
@@ -38,7 +38,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
 #include <ipxe/timer.h>
 #include <usr/ifmgmt.h>
 #include <usr/route.h>
-#include <usr/dhcpmgmt.h>
 #include <usr/imgmgmt.h>
 #include <usr/prompt.h>
 #include <usr/autoboot.h>
@@ -365,8 +364,8 @@ int netboot ( struct net_device *netdev ) {
                goto err_ifopen;
        ifstat ( netdev );
 
-       /* Configure device via DHCP */
-       if ( ( rc = dhcp ( netdev ) ) != 0 )
+       /* Configure device */
+       if ( ( rc = ifconf ( netdev, NULL ) ) != 0 )
                goto err_dhcp;
        route();