From: Michael Brown Date: Mon, 4 Nov 2013 23:06:45 +0000 (+0000) Subject: [autoboot] Use ifconf() to configure network device X-Git-Tag: v1.20.1~1374 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2525e55c19a20c005b70056f9df546e9f6382013;p=thirdparty%2Fipxe.git [autoboot] Use ifconf() to configure network device Signed-off-by: Michael Brown --- diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c index 276fb3db8..6d6419d63 100644 --- a/src/usr/autoboot.c +++ b/src/usr/autoboot.c @@ -38,7 +38,6 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include #include #include -#include #include #include #include @@ -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();