1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

global-functions: $TimeIsSync: warn on missing time source

This commit is contained in:
Christian Hesse
2020-08-21 23:35:29 +02:00
parent 7febb6a0f4
commit 8c988ac55a

@ -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;
}