Compare commits

..

71 commits

Author SHA1 Message Date
Christian Hesse
a6288217c1 dhcp-to-dns: support to ignore networks
Closes: https://github.com/eworm-de/routeros-scripts/issues/119
2026-05-11 15:44:14 +02:00
Christian Hesse
8d781870b3 bump required RouterOS version for all scripts 2026-05-11 15:44:14 +02:00
Christian Hesse
bd84f40e2d global-functions: $NetMask6: use shift operator...
... and drop the workaround. This requires RouterOS 7.22beta3.
2026-05-11 15:44:14 +02:00
Christian Hesse
639b4a721b Merge branch 'break-in-loop' into next 2026-05-11 15:44:14 +02:00
Christian Hesse
8b36ccd936 Merge branch 'continue-in-loop' into next 2026-05-11 15:44:14 +02:00
Christian Hesse
8a3940d173 telegram-chat: fix indention 2026-05-11 15:44:14 +02:00
Christian Hesse
da2e543cc9 dhcp-to-dns: fix indention 2026-05-11 15:44:14 +02:00
Christian Hesse
14a4f53aee telegram-chat: use :break in loop 2026-05-11 15:44:14 +02:00
Christian Hesse
0c4bae7c74 dhcp-to-dns: use another :continue in loop 2026-05-11 15:44:14 +02:00
Christian Hesse
c5ee4d8782 check-certificates: use :break in loop 2026-05-11 15:44:14 +02:00
Christian Hesse
0ed4756796 dhcp-to-dns: use :continue in loop 2026-05-11 15:44:14 +02:00
Christian Hesse
37285db747 telegram-chat: use :continue in loop 2026-05-11 15:44:14 +02:00
Christian Hesse
4d33570f70 netwatch-dns: fix indention 2026-05-11 15:44:14 +02:00
Christian Hesse
5237457e58 netwatch-dns: use :continue in loop 2026-05-11 15:44:14 +02:00
Christian Hesse
4c430403fe netwatch-dns: fix indention 2026-05-11 15:44:14 +02:00
Christian Hesse
c6f7c3833d netwatch-dns: use :continue in loop 2026-05-11 15:44:14 +02:00
Christian Hesse
ba5ec4901c global-functions: $ScriptInstallUpdate: fix indention 2026-05-11 15:44:14 +02:00
Christian Hesse
b1686c1a74 global-functions: $ScriptInstallUpdate: use :continue in loop 2026-05-11 15:44:14 +02:00
Christian Hesse
362b4538d7 global-functions: $CleanName: use :continue in loop 2026-05-11 15:43:58 +02:00
Christian Hesse
726a491ac3 fw-addr-lists: fix indention 2026-05-11 15:43:21 +02:00
Christian Hesse
f65dc263f4 fw-addr-lists: use :continue in loop 2026-05-11 15:43:21 +02:00
Christian Hesse
2072ac309e Merge branch 'early-exit-with-exit' into next 2026-05-11 15:43:20 +02:00
Christian Hesse
afb767871f Merge branch 'compare-ids' into next 2026-05-11 15:43:20 +02:00
Christian Hesse
7ce25f7ece global-functions: deprecate $ExitError 2026-05-11 15:43:20 +02:00
Christian Hesse
ee14da6c9c Merge branch 'drop-builtin-trust-anchors' into next 2026-05-11 15:43:20 +02:00
Christian Hesse
2ee5b11310 global-functions: deprecate $HexToNum 2026-05-11 15:43:20 +02:00
Christian Hesse
f85355b9ba update-tunnelbroker: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
42bbaf73a4 mod/notification-email: get property by name
This works now that we require RouterOS 7.21 anyway.
2026-05-11 15:43:20 +02:00
Christian Hesse
ba57a80d17 INITIAL-COMMANDS: drop the old builtin-trust-anchors 2026-05-11 15:43:20 +02:00
Christian Hesse
f980a24989 log-forward: fix indention 2026-05-11 15:43:20 +02:00
Christian Hesse
e4de545860 update-gre-address: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
ea145c3e69 mod/notification-email: use errors from command...
... instead of reading status from properties. This was introduced in
RouterOS 7.21beta2 (and we bump to 7.21 instead).
2026-05-11 15:43:20 +02:00
Christian Hesse
b71eb32600 global-functions: $CertificateDownload: drop the old builtin-trust-anchors 2026-05-11 15:43:20 +02:00
Christian Hesse
1397f068c6 log-forward: use comparison for ids
This was introduced with RouterOS 7.22beta1.

Initializing $LogForwardLast with boolean value looks odd, but this is
reuqired to match the very first message.
2026-05-11 15:43:20 +02:00
Christian Hesse
c03ffebfea telegram-chat: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
bcd3fa9a77 global-functions: $CleanName: add missing colon 2026-05-11 15:43:20 +02:00
Christian Hesse
c85183a260 global-functions: $CertificateAvailable: drop the old builtin-trust-anchors 2026-05-11 15:43:20 +02:00
Christian Hesse
c601316cd9 sms-forward: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
1500106a5b README: drop the old builtin-trust-anchors 2026-05-11 15:43:20 +02:00
Christian Hesse
5d991c8ed6 sms-action: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
f900684a20 ppp-on-up: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
f2a3a0414e packages-update: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
457b8de18e ospf-to-leds: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
b3ae0fa682 netwatch-notify: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
68cb26f06a netwatch-dns: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
8e6b1a278b log-forward: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
45fefb4299 ipv6-update: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
29c7f9f366 ipsec-to-dns: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
8147674a85 hotspot-to-wpa-cleanup: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
93295dffe6 hotspot-to-wpa: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
6d2c67fb15 gps-track: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
fd24deb651 fw-addr-lists: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
fa6e268d7f firmware-upgrade-reboot: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
46ead7cb01 dhcpv6-client-lease: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
e81427d10a dhcpv4-server-lease: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
e2274b5764 dhcp-to-dns: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
f2d30f80be dhcp-lease-comment: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
bc3c31a6c1 daily-psk: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
ef47f93f40 collect-wireless-mac: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
759ed0e36a check-routeros-update: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
a28347d451 check-perpetual-license: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
5c02b2c349 check-lte-firmware-upgrade: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
db848ebc22 check-health: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
b52558891b check-certificates: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
e67032cc44 certificate-renew-issued: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
5c0dbebb10 capsman-rolling-upgrade: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
ae849d7a6b capsman-download-packages: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
4f0b666c4e backup-upload: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
a20c6a5f57 backup-partition: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
2184885413 backup-email: early exit with :exit 2026-05-11 15:43:20 +02:00
Christian Hesse
701c3b2c3a backup-cloud: early exit with :exit 2026-05-11 15:43:20 +02:00

View file

@ -306,18 +306,12 @@
:for I from=0 to=([ :len $Input ] - 1) do={
:local Char [ :pick $Input $I ];
:if ([ :typeof [ find "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" $Char ] ] = "nil") do={
:do {
:if ([ :len $Return ] = 0) do={
:error true;
}
:if ([ :pick $Return ([ :len $Return ] - 1) ] = "-") do={
:error true;
}
:set Char "-";
} on-error={
:set Char "";
:if ([ :typeof [ :find "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" $Char ] ] = "nil") do={
:if ([ :len $Return ] = 0 || \
[ :pick $Return ([ :len $Return ] - 1) ] = "-") do={
:continue;
}
:set Char "-";
}
:set Return ($Return . $Char);
}