mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user