Files
ols-ucentral-schema/command/cmd_reboot.uc
John Crispin 81f1886bea convert system and command scripts to raw mode
Signed-off-by: John Crispin <john@phrozen.org>
2022-04-20 15:02:25 +02:00

10 lines
191 B
Ucode

log("Initiating reboot");
system("(sleep 10; reboot)&");
system("/etc/init.d/ucentral stop");
let err = ctx.error();
if (err != null)
result(2, "Reboot call failed with status %s", err);