mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $WaitTimeSync: rotate ntp servers minutely
Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
@@ -481,6 +481,10 @@
|
||||
:global TimeIsSync;
|
||||
|
||||
:while ([ $TimeIsSync ] = false) do={
|
||||
:if ([ / system script print count-only where name="rotate-ntp" ] > 0 && \
|
||||
[ :tostr [ / system resource get uptime ] ] ~ "00\$") do={
|
||||
/ system script run rotate-ntp;
|
||||
}
|
||||
:delay 1s;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user