Commit 46d61594 authored by Franco Fichtner's avatar Franco Fichtner

rc: synchronous reboot after reset

parent 11bb2b90
......@@ -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)
{
......
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment