aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-06-14 21:17:01 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-06-15 16:39:49 +0200
commitb3de1fad3459aa886b3ca3e1f1f91066ab0730b6 (patch)
treeae2eca55b833d01b2d82c526f833a73f9b439578 /global-functions
parent66b7fccd303137d68cf571e79a0ffd7ca82f4b6a (diff)
drop script 'rotate-ntp'change-81
For RouterOS 6.x a separate package 'ntp' exists. This adds server functionality, but allows ip addresses for the client only. I added the script 'rotate-ntp' to update addresses from names... Now with RouterOS 7.x there's no extra package and the limitation does no longer exist. So let's just drop the script. This adds migration code, that... * removes the script from configuration * removes a scheduler from configuration * sets the configured ntp pool name for ntp client
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions10
1 files changed, 1 insertions, 9 deletions
diff --git a/global-functions b/global-functions
index 7266861..c12bd54 100644
--- a/global-functions
+++ b/global-functions
@@ -10,7 +10,7 @@
:local 0 "global-functions";
# expected configuration version
-:global ExpectedConfigVersion 80;
+:global ExpectedConfigVersion 81;
# global variables not to be changed by user
:global GlobalFunctionsReady false;
@@ -1260,14 +1260,6 @@
:global TimeIsSync;
:while ([ $TimeIsSync ] = false) do={
- :if ([ :len [ /system/script/find where name="rotate-ntp" ] ] > 0 && \
- ([ /system/resource/get uptime ] % (180 * 1000000000)) = 0s) do={
- :do {
- /system/script/run rotate-ntp;
- } on-error={
- $LogPrintExit2 debug $0 ("Running rotate-ntp failed.") false;
- }
- }
:delay 1s;
}
}