Delay scheduled update reboot

Ensures all devices are finished updating before any start rebooting.
This commit is contained in:
Ben Harris 2023-09-07 10:13:43 +08:00
parent 50429a0ad8
commit 0fcfa4267d

View file

@ -91,8 +91,12 @@ $ScriptLock $0;
":global RebootForUpdate; \$RebootForUpdate;"); ":global RebootForUpdate; \$RebootForUpdate;");
$LogPrintExit2 info $0 ("Scheduled reboot for update between 03:00 and 04:00.") true; $LogPrintExit2 info $0 ("Scheduled reboot for update between 03:00 and 04:00.") true;
} }
}
$LogPrintExit2 info $0 ("Rebooting for update.") false; $LogPrintExit2 info $0 ("Rebooting for update now.") false;
:delay 1s; :delay 1s;
/system/reboot; /system/reboot;
} else={
$LogPrintExit2 info $0 ("Rebooting for update soon.") false;
:delay 300s;
/system/reboot;
}