rc: synchronous reboot after reset

This commit is contained in:
Franco Fichtner 2015-08-13 17:20:44 +02:00
parent 11bb2b9004
commit 46d6159477
2 changed files with 1 additions and 3 deletions

View File

@ -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)
{

View File

@ -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);