aboutsummaryrefslogtreecommitdiffstats
path: root/rotate-ntp
diff options
context:
space:
mode:
Diffstat (limited to 'rotate-ntp')
-rw-r--r--rotate-ntp17
1 files changed, 0 insertions, 17 deletions
diff --git a/rotate-ntp b/rotate-ntp
deleted file mode 100644
index 465a46c..0000000
--- a/rotate-ntp
+++ /dev/null
@@ -1,17 +0,0 @@
-#!rsc
-# RouterOS script: rotate-ntp
-# Copyright (c) 2013-2020 Christian Hesse <mail@eworm.de>
-#
-# rotate the ntp servers
-
-:global NtpPool;
-
-:local Ntp1 [ :resolve ("0." . $NtpPool) ];
-:local Ntp2 [ :resolve ("1." . $NtpPool) ];
-
-: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;