mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
rc: synchronous reboot after reset
This commit is contained in:
parent
11bb2b9004
commit
46d6159477
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user