mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-28 22:08:38 +02:00
global-functions: $IsTimeSync: add (one time) warning on failed ntp sync
This commit is contained in:
parent
fb7170f312
commit
2745597b93
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue