2023-03-07 09:57:42 +00:00
# News, changes and migration by RouterOS Scripts
2024-01-01 14:25:25 +00:00
# Copyright (c) 2019-2024 Christian Hesse <mail@eworm.de>
2023-03-07 09:57:42 +00:00
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
2023-11-27 17:38:57 +00:00
:global IDonate;
2023-03-07 09:57:42 +00:00
:global IfThenElse;
:global RequiredRouterOS;
2023-11-27 17:30:11 +00:00
:global SymbolForNotification;
2023-03-07 09:57:42 +00:00
2024-01-29 16:55:30 +00:00
:local Resource [ /system/resource/get ];
2023-11-14 17:51:54 +00:00
# News, changes and migration up to change 95:
# https://git.eworm.de/cgit/routeros-scripts/plain/global-config.changes?h=change-95
2023-03-07 09:57:42 +00:00
# Changes for global-config to be added to notification on script updates
:global GlobalConfigChanges {
2023-03-20 11:18:32 +00:00
96="Added support for notes in 'netwatch-notify', these are included verbatim into the notification.";
2023-03-21 19:59:15 +00:00
97="Modified 'dhcp-to-dns' to always add A records for names with mac address, and optionally add CNAME records if the host name is available.";
2023-04-06 13:19:23 +00:00
98="Extended 'check-certificates' to download new certificate by SubjectAltNames if download by CommonName fails.";
2023-04-12 22:32:13 +00:00
99="Modified 'dhcp-to-dns', which dropped global configuration. Settings moved to dhcp server's network definitions.";
2023-04-04 14:27:23 +00:00
100="The script 'ssh-keys-import' became a module 'mod/ssh-keys-import' with enhanced functionality.";
2023-05-31 08:01:38 +00:00
101="Introduced new script 'fw-addr-lists' to download, import and update firewall address-lists.";
2023-06-23 15:33:51 +00:00
102="Modified 'hotspot-to-wpa' to support non-local (radius) users.";
2023-06-27 19:59:18 +00:00
103="Dropped hard-coded name and timeout from 'hotspot-to-wpa-cleanup', instead a comment is required for dhcp server now.";
2023-08-09 09:12:21 +00:00
104="All relevant scripts were ported to new wifiwave2 and are available for AX devices now!";
2023-08-17 07:06:44 +00:00
105="Extended 'check-routeros-update' to support automatic update from specific neighbor(s).";
2023-10-13 19:54:50 +00:00
106="Modified 'telegram-chat' to make it act on message replies, without activation. Also made it answer a single question mark with a short notice.";
2023-10-13 14:42:24 +00:00
107="Dropped support for non-fixed width font in Telegram notifications.";
2023-10-10 21:43:59 +00:00
108="Enhanced 'log-forward' to list log messages with colorful bullets to indicate severity.";
2023-10-11 05:40:55 +00:00
109="Added support to send notifications via Ntfy (ntfy.sh).";
2023-10-13 15:27:52 +00:00
110="Dropped support for loading scripts from local storage.";
2023-10-27 06:58:29 +00:00
111="Modified 'dhcp-to-dns' to allow multiple records for one mac address.";
2023-11-02 08:46:25 +00:00
112="Enhanced 'mod/ssh-keys-import' to record the fingerprint of keys.";
2023-11-08 12:08:49 +00:00
113="Added helper functions for easier setup to Matrix notification module.";
2023-11-14 16:39:41 +00:00
114="All relevant scripts were ported to new wifi package for RouterOS 7.13 and later. Migration is complex and thus not done automatically!";
2023-11-27 17:30:11 +00:00
115=("Celebrating " . [ $SymbolForNotification "sparkles,star" ] . "1.000 stars " . [ $SymbolForNotification "star,sparkles" ] . "on Github! Please continue starring...");
2023-11-27 17:38:57 +00:00
116=("... and also please keep in mind that it takes a huge amount of time maintaining these scripts. " . [ $IfThenElse ($IDonate != true) \
("Following the donation hint " . [ $SymbolForNotification "arrow-down" "below" ] . "to keep me motivated is much appreciated. Thanks!") \
("Looks like you did donate already. " . [ $SymbolForNotification "heart" "<3" ] . "Much appreciated, thanks!") ]);
2024-01-26 08:11:17 +00:00
117="Enhanced 'packages-update' to support deferred reboot on automatically installed updates.";
2024-01-29 16:55:30 +00:00
118=("RouterOS packages increase in size with each release. This becomes a problem for devices with 16MB storage and below. " . \
[ $IfThenElse ($Resource->"total-hdd-space" < 16000000) ("Your " . $Resource->"board-name" . " is specifically affected! ") \
[ $IfThenElse ($Resource->"free-hdd-space" > 4000000) ("(Your " . $Resource->"board-name" . " does not suffer this issue.) ") ] ] . \
"Huge configuration and lots of scripts give an extra risk. Take care!");
2024-02-23 10:19:56 +00:00
119="Added support for IPv6 to script 'fw-addr-lists'.";
2024-03-04 19:57:34 +00:00
120="Implemented a workaround in 'backup-cloud'. Now script should no longer just crash, but send notification with error.";
2024-03-11 15:32:49 +00:00
121="The 'wifiwave2' scripts are finally gone. Development continues with 'wifi' in RouterOS 7.13 and later.";
2024-03-08 08:33:17 +00:00
122="The global configuration was enhanced to support loading snippets. Configuration can be split off to scripts where name starts with 'global-config-overlay.d/'.";
2024-03-08 09:38:09 +00:00
123="Introduced new function '\$LogPrint', and deprecated '\$LogPrintExit2'. Please update custom scripts if you use it.";
2023-03-07 09:57:42 +00:00
};
# Migration steps to be applied on script updates
:global GlobalConfigMigration {
2023-03-21 19:59:15 +00:00
97=":local Rec [ /ip/dns/static/find where comment~\"^managed by dhcp-to-dns for \" ]; :if ([ :len \$Rec ] > 0) do={ /ip/dns/static/remove \$Rec; /system/script/run dhcp-to-dns; }";
2023-04-04 14:27:23 +00:00
100=":global ScriptInstallUpdate; :if ([ :len [ /system/script/find where name=\"ssh-keys-import\" source~\"^#!rsc by RouterOS\\n\" ] ] > 0) do={ /system/script/set name=\"mod/ssh-keys-import\" ssh-keys-import; \$ScriptInstallUpdate; }";
2023-08-09 09:12:21 +00:00
104=":global CharacterReplace; :global ScriptInstallUpdate; :foreach Script in={ \"capsman-download-packages\"; \"capsman-rolling-upgrade\"; \"hotspot-to-wpa\"; \"hotspot-to-wpa-cleanup\" } do={ /system/script/set name=(\$Script . \".capsman\") [ find where name=\$Script ]; :foreach Scheduler in=[ /system/scheduler/find where on-event~(\$Script . \"([^-.]|\\\$)\") ] do={ /system/scheduler/set \$Scheduler on-event=[ \$CharacterReplace [ get \$Scheduler on-event ] \$Script (\$Script . \".capsman\") ]; }; }; /ip/hotspot/user/profile/set on-login=\"hotspot-to-wpa.capsman\" [ find where on-login=\"hotspot-to-wpa\" ]; \$ScriptInstallUpdate;";
2023-10-27 06:58:29 +00:00
111=":local Rec [ /ip/dns/static/find where comment~\"^managed by dhcp-to-dns for \" ]; :if ([ :len \$Rec ] > 0) do={ /ip/dns/static/remove \$Rec; /system/script/run dhcp-to-dns; }";
2023-03-07 09:57:42 +00:00
};