aboutsummaryrefslogtreecommitdiffstats
path: root/global-config.changes
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-config.changes
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-config.changes')
-rw-r--r--global-config.changes2
1 files changed, 2 insertions, 0 deletions
diff --git a/global-config.changes b/global-config.changes
index e317b02..04f88e7 100644
--- a/global-config.changes
+++ b/global-config.changes
@@ -89,6 +89,7 @@
78="New documentation is online for notifications via Telegram & Matrix, variable inspection, ip address calculation and running scripts once.";
79="Introduced new script 'backup-partition' to save configuration to fallback partition.";
80="The 'routeros-v7' branch will now freeze, and vanish any time in future. You already switched to 'main' branch, well done!";
+ 81="Dropped script 'rotate-ntp', as the limitation does no longer exist.";
};
# Migration steps to be applied on script updates
@@ -101,4 +102,5 @@
66=":global ScriptInstallUpdate; :if ([ :len [ /system/script/find where name=\"bridge-port-to-default\" ] ] > 0) do={ /system/script/remove [ find where name~\"^bridge-port-to(-default|ggle)\\\$\" ]; \$ScriptInstallUpdate mod/bridge-port-to; }";
67=":global ScriptInstallUpdate; :global CharacterReplace; :foreach Script in=[ /system/script/find where name~\"^global-functions.d/\" ] do={ /system/script/set name=[ \$CharacterReplace [ /system/script/get \$Script name ] \"global-functions.d/\" \"mod/\" ] \$Script; }; \$ScriptInstallUpdate;";
73=":global ScriptInstallUpdate; :global CharacterReplace; :foreach Old,New in={ \"cloud-backup\"=\"backup-cloud\"; \"email-backup\"=\"backup-email\"; \"upload-backup\"=\"backup-upload\" } do={ /system/script/set name=\$New [ find where name=\$Old ]; :foreach Scheduler in=[ /system/scheduler/find where on-event~\$Old ] do={ /system/scheduler/set \$Scheduler name=[ \$CharacterReplace [ get \$Scheduler name ] \$Old \$New ] on-event=[ \$CharacterReplace [ get \$Scheduler on-event ] \$Old \$New ]; }; }; \$ScriptInstallUpdate;";
+ 81=":global NtpPool; :if ([ :len [ /system/script/find where name=\"rotate-ntp\" ] ] > 0) do={ /system/script/remove [ find where name=\"rotate-ntp\" ]; /system/scheduler/remove [ find where name=\"rotate-ntp\" ]; /system/ntp/client/set servers=\$NtpPool; };";
};