mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-24 04:44:35 +02: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;
|
: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 ([ /ip/cloud/get update-time ] = true) do={
|
||||||
:if ([ :typeof [ /ip/cloud/get public-address ] ] = "ip") do={
|
:if ([ :typeof [ /ip/cloud/get public-address ] ] = "ip") do={
|
||||||
:set IsTimeSyncCached true;
|
:set IsTimeSyncCached true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue