X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fdevice-handler.c;h=a06dafc03c6f92808f6c0c35a28b9dfaed470e04;hp=ccc7cc3d01dc8ce0d5fa01f5dc885042461af0dc;hb=a60ef7083d77029e7bd6f0b948c560c239406dbf;hpb=a249555fa8be3f01f692088f867de8d8b3e45990 diff --git a/discover/device-handler.c b/discover/device-handler.c index ccc7cc3..a06dafc 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -419,7 +419,7 @@ static void set_default(struct device_handler *handler, return; handler->default_boot_option = opt; - handler->sec_to_boot = DEFAULT_BOOT_TIMEOUT_SEC; + handler->sec_to_boot = config_get()->autoboot_timeout_sec; pb_log("Boot option %s set as default, timeout %u sec.\n", opt->option->id, handler->sec_to_boot);