From 46d6159477e8f7912c42c8db29658405498c4f2a Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 13 Aug 2015 17:20:44 +0200 Subject: [PATCH] rc: synchronous reboot after reset --- src/etc/inc/config.lib.inc | 2 -- src/etc/rc.initial.defaults | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/etc/inc/config.lib.inc b/src/etc/inc/config.lib.inc index 3cb397c60..88567c341 100644 --- a/src/etc/inc/config.lib.inc +++ b/src/etc/inc/config.lib.inc @@ -213,8 +213,6 @@ function write_config($desc = 'Unknown', $backup = true) /****f* config/reset_factory_defaults * NAME * reset_factory_defaults - Reset the system to its default configuration. - * RESULT - * integer - indicates completion ******/ function reset_factory_defaults($sync = true) { diff --git a/src/etc/rc.initial.defaults b/src/etc/rc.initial.defaults index a455432dd..84a095e69 100755 --- a/src/etc/rc.initial.defaults +++ b/src/etc/rc.initial.defaults @@ -43,7 +43,7 @@ Do you want to proceed {$yes_no_prompt} EOD; if (strcasecmp(chop(fgets($fp)), 'y') == 0) { - reset_factory_defaults(); + reset_factory_defaults(true); } fclose($fp);