mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04: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:
parent
9e4c6d70a9
commit
12a29d076f
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue