diff options
author | Michael Brown <mcb30@ipxe.org> | 2013-11-04 23:06:45 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2013-11-05 17:42:50 +0000 |
commit | 2525e55c19a20c005b70056f9df546e9f6382013 (patch) | |
tree | 651f8d0869abba65bd09898f6f6c2373cc4472b4 /src/usr/autoboot.c | |
parent | 26b87b221b45ccf53257962f4de030fbe855d634 (diff) | |
download | ipxe-2525e55c19a20c005b70056f9df546e9f6382013.tar.gz |
[autoboot] Use ifconf() to configure network device
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/usr/autoboot.c')
-rw-r--r-- | src/usr/autoboot.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c index 276fb3db..6d6419d6 100644 --- a/src/usr/autoboot.c +++ b/src/usr/autoboot.c @@ -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(); |