mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-02-24 00:59:35 +00:00
Delay scheduled update reboot
Ensures all devices are finished updating before any start rebooting.
This commit is contained in:
parent
50429a0ad8
commit
0fcfa4267d
1 changed files with 8 additions and 4 deletions
|
|
@ -91,8 +91,12 @@ $ScriptLock $0;
|
|||
":global RebootForUpdate; \$RebootForUpdate;");
|
||||
$LogPrintExit2 info $0 ("Scheduled reboot for update between 03:00 and 04:00.") true;
|
||||
}
|
||||
}
|
||||
|
||||
$LogPrintExit2 info $0 ("Rebooting for update.") false;
|
||||
:delay 1s;
|
||||
/system/reboot;
|
||||
$LogPrintExit2 info $0 ("Rebooting for update now.") false;
|
||||
:delay 1s;
|
||||
/system/reboot;
|
||||
} else={
|
||||
$LogPrintExit2 info $0 ("Rebooting for update soon.") false;
|
||||
:delay 300s;
|
||||
/system/reboot;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue