mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
system: do the same here
The async case yields to the GUI page rendering so do not modify it.
This commit is contained in:
parent
b258333ae7
commit
e01c506cc4
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user