From eae6ac3d0bdb5f25193af9584db4eec9dd5226c9 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 20 Mar 2008 23:42:11 +0000 Subject: [Settings] Convert code in src/usr to use settings API. --- src/usr/autoboot.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/usr/autoboot.c') diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c index b84bd7b17..bc86d05e8 100644 --- a/src/usr/autoboot.c +++ b/src/usr/autoboot.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -146,16 +147,14 @@ static int netboot ( struct net_device *netdev ) { return rc; /* Try to download and boot whatever we are given as a filename */ - dhcp_snprintf ( buf, sizeof ( buf ), - find_global_dhcp_option ( DHCP_BOOTFILE_NAME ) ); + fetch_string_setting ( NULL, DHCP_BOOTFILE_NAME, buf, sizeof ( buf ) ); if ( buf[0] ) { printf ( "Booting from filename \"%s\"\n", buf ); return boot_filename ( buf ); } /* No filename; try the root path */ - dhcp_snprintf ( buf, sizeof ( buf ), - find_global_dhcp_option ( DHCP_ROOT_PATH ) ); + fetch_string_setting ( NULL, DHCP_ROOT_PATH, buf, sizeof ( buf ) ); if ( buf[0] ) { printf ( "Booting from root path \"%s\"\n", buf ); return boot_root_path ( buf ); -- cgit v1.2.3-55-g7522