david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[autoboot] Use ifconf() to configure network device

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2013-11-04 23:06:45 +00:00
parent 26b87b221b
commit 2525e55c19
1 changed files with 2 additions and 3 deletions

View 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();