mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $IsTimeSync: no cloud with CHR free license
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user