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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user