From 2525e55c19a20c005b70056f9df546e9f6382013 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 4 Nov 2013 23:06:45 +0000 Subject: [autoboot] Use ifconf() to configure network device Signed-off-by: Michael Brown --- src/usr/autoboot.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/usr') 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 #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(); -- cgit v1.2.3-55-g7522