From 12a29d076f4de3e8a254b6306d53cf717ca6ff48 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 13 May 2020 14:07:12 +0200 Subject: global-functions: $WaitTimeSync: failing rotate-ntp is not fatal Resolving ntp servers fais if internet connectivity is not established. So this is not fatal, we want to catch error and fall through, then continue. --- global-functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/global-functions b/global-functions index b95e9cf..53aed48 100644 --- a/global-functions +++ b/global-functions @@ -731,7 +731,11 @@ :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; + :do { + / system script run rotate-ntp; + } on-error={ + # catch error and fall through + } } :delay 1s; } -- cgit v1.2.3-54-g00ecf