aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-08-21 23:35:29 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-08-21 23:35:29 +0200
commit8c988ac55a7dc1bd61ea9a6433bb4f0910a8c0ab (patch)
treea34a391f8c120c56c3f8c538dcad7536cb490eba /global-functions
parent7febb6a0f418c07239fa8fcaa61ce4b5ef75f448 (diff)
global-functions: $TimeIsSync: warn on missing time source
Diffstat (limited to 'global-functions')
-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;
}