aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-02-24 12:15:06 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-02-24 13:01:45 +0100
commit19b80ee063be901049bf33e63011c96b0f42fc01 (patch)
treefc56b882b6d5450662c288e92e3e45127cb6bfc1 /global-functions
parent5fab77abad6f4d4cc78118e57aff64b56abc85a4 (diff)
global-functions: $WaitTimeSync: rotate ntp servers minutely
Signed-off-by: Christian Hesse <mail@eworm.de>
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;
}
}