mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-23 20:34:27 +02:00
global-functions: $IsTimeSync: drop old code
In RouterOS 7.x the ntp client and server are bundled and unique and can not be unavailable. Also it does no longer have a 'last-adjustment' property...
This commit is contained in:
parent
518cc24108
commit
ed7b48061a
1 changed files with 2 additions and 8 deletions
|
@ -484,14 +484,8 @@
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
|
|
||||||
:if ([ /system/ntp/client/get enabled ] = true) do={
|
:if ([ /system/ntp/client/get enabled ] = true) do={
|
||||||
:do {
|
:if ([ /system/ntp/client/get status ] = "synchronized") do={
|
||||||
:if ([ /system/ntp/client/get status ] = "synchronized") do={
|
:return true;
|
||||||
:return true;
|
|
||||||
}
|
|
||||||
} on-error={
|
|
||||||
:if ([ :typeof [ /system/ntp/client/get last-adjustment ] ] = "time") do={
|
|
||||||
:return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue