mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-10 10:04:30 +02: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…
Add table
Add a link
Reference in a new issue