mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-03 01:34:47 +02:00
rotate-ntp: warn if ntp client is disabled
This commit is contained in:
parent
74d59641e6
commit
76dbc98013
1 changed files with 4 additions and 0 deletions
|
@ -9,5 +9,9 @@
|
|||
:local ntp1 [ :resolve ("0." . $"ntp-pool") ];
|
||||
:local ntp2 [ :resolve ("1." . $"ntp-pool") ];
|
||||
|
||||
:if ([ / system ntp client get enabled ] != true) do={
|
||||
:log warning "NTP client is not enabled!";
|
||||
}
|
||||
|
||||
:log info ("Updating NTP servers to " . $ntp1 . " and " . $ntp2);
|
||||
/ system ntp client set primary-ntp=$ntp1 secondary-ntp=$ntp2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue