mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $IsTimeSync: add (one time) warning on failed ntp sync
This commit is contained in:
@@ -693,6 +693,7 @@
|
|||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$LogPrintOnce warning $0 ("The ntp client is configured, but did not sync.");
|
||||||
:set IsTimeSyncResetNtp $Uptime;
|
:set IsTimeSyncResetNtp $Uptime;
|
||||||
/system/ntp/client/set enabled=no;
|
/system/ntp/client/set enabled=no;
|
||||||
:delay 20ms;
|
:delay 20ms;
|
||||||
|
|||||||
Reference in New Issue
Block a user