mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-03 17:54:41 +02:00
parent
98f26989f5
commit
62f33d7b19
5 changed files with 24 additions and 1 deletions
|
@ -18,6 +18,8 @@
|
|||
:global ScriptLock;
|
||||
:global VersionToNum;
|
||||
|
||||
:global PackagesUpdateDeferReboot;
|
||||
|
||||
:local Schedule do={
|
||||
:global RebootForUpdate do={
|
||||
:global RandomDelay;
|
||||
|
@ -109,6 +111,11 @@ $ScriptLock $0;
|
|||
$Schedule;
|
||||
$LogPrintExit2 info $0 ("Scheduled reboot for update between 03:00 and 04:00.") true;
|
||||
}
|
||||
} else={
|
||||
:if ($PackagesUpdateDeferReboot = true) do={
|
||||
$Schedule;
|
||||
$LogPrintExit2 info $0 ("Scheduled reboot for update between 03:00 and 04:00.") true;
|
||||
}
|
||||
}
|
||||
|
||||
$LogPrintExit2 info $0 ("Rebooting for update.") false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue