aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-05-13 14:07:12 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-05-13 14:07:12 +0200
commit12a29d076f4de3e8a254b6306d53cf717ca6ff48 (patch)
tree46b78a6912957d28c9c420fc13aa0787aea6a7c6 /global-functions
parent9e4c6d70a9704a267abf774e75f250bfdf0d848d (diff)
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.
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions6
1 files changed, 5 insertions, 1 deletions
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;
}