mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: $IsTimeSync: no cloud with CHR free license
This commit is contained in:
parent
a7bdebbfb0
commit
ef7360453f
1 changed files with 5 additions and 0 deletions
|
@ -445,6 +445,11 @@
|
|||
:return false;
|
||||
}
|
||||
|
||||
:if ([ /system/license/get ]->"level" = "free") do={
|
||||
$LogPrintExit2 debug $0 ("No ntp client configured, relying on RTC for CHR free license.") false;
|
||||
:return true;
|
||||
}
|
||||
|
||||
:if ([ /ip/cloud/get update-time ] = true) do={
|
||||
:if ([ :typeof [ /ip/cloud/get public-address ] ] = "ip") do={
|
||||
:set IsTimeSyncCached true;
|
||||
|
|
Loading…
Reference in a new issue