From 19b80ee063be901049bf33e63011c96b0f42fc01 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 24 Feb 2020 12:15:06 +0100 Subject: global-functions: $WaitTimeSync: rotate ntp servers minutely Signed-off-by: Christian Hesse --- global-functions | 4 ++++ 1 file changed, 4 insertions(+) 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; } } -- cgit v1.2.3-54-g00ecf