diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc index 1953cef5b..1c91a4e36 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -1133,6 +1133,9 @@ function reset_factory_defaults($sync = true) $shutdown_cmd = '/sbin/shutdown -op now'; if ($sync) { mwexec($shutdown_cmd); + while (true) { + sleep(1); + } } else { mwexec_bg($shutdown_cmd); }