aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--global-functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index 7f3e51b..4014e76 100644
--- a/global-functions
+++ b/global-functions
@@ -763,6 +763,8 @@
# check if system time is sync
:set TimeIsSync do={
+ :global LogPrintExit;
+
:if ([ / system ntp client get enabled ] = true) do={
:do {
:if ([ / system ntp client get status ] = "synchronized") do={
@@ -783,6 +785,7 @@
:return false;
}
+ $LogPrintExit warning ("No time source configured!") false;
:return false;
}