mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-08 17:14:30 +02:00
global-functions: $WaitTimeSync: rotate ntp servers minutely
Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
parent
5fab77abad
commit
19b80ee063
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue