aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-11-22 21:59:21 +0100
committerGravatar Christian Hesse <mail@eworm.de>2022-11-22 22:23:51 +0100
commitef7360453ff6b011e236e0adf3948719873c7040 (patch)
treeeb1752664619a903efd9cd49715a951f1c36099e
parenta7bdebbfb0df6b847690f8df2e66d43729eb9f2b (diff)
global-functions: $IsTimeSync: no cloud with CHR free license
-rw-r--r--global-functions5
1 files changed, 5 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index 3d04bcb..52ecbed 100644
--- a/global-functions
+++ b/global-functions
@@ -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;