aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index 73a6d37..d8d5b44 100644
--- a/global-functions
+++ b/global-functions
@@ -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;
}
}