Compare commits

..

69 commits

Author SHA1 Message Date
Christian Hesse
83b7e7802e dhcp-to-dns: support to ignore networks
Closes: https://github.com/eworm-de/routeros-scripts/issues/119
2026-05-07 15:58:08 +02:00
Christian Hesse
03d4c2bacf bump required RouterOS version for all scripts 2026-05-07 15:58:08 +02:00
Christian Hesse
bc00eb17e3 global-functions: $NetMask6: use shift operator...
... and drop the workaround. This requires RouterOS 7.22beta3.
2026-05-07 15:58:08 +02:00
Christian Hesse
48a47270a0 Merge branch 'break-in-loop' into next 2026-05-07 15:58:08 +02:00
Christian Hesse
dd19611210 Merge branch 'continue-in-loop' into next 2026-05-07 15:58:08 +02:00
Christian Hesse
e1eb54751d telegram-chat: fix indention 2026-05-07 15:58:08 +02:00
Christian Hesse
c7a48caed1 Merge branch 'early-exit-with-exit' into next 2026-05-07 15:58:08 +02:00
Christian Hesse
96ff5e52db dhcp-to-dns: fix indention 2026-05-07 15:58:08 +02:00
Christian Hesse
ad36e9a773 telegram-chat: use :break in loop 2026-05-07 15:58:08 +02:00
Christian Hesse
1047715e22 Merge branch 'compare-ids' into next 2026-05-07 15:58:08 +02:00
Christian Hesse
72f2644bd3 global-functions: deprecate $ExitError 2026-05-07 15:58:08 +02:00
Christian Hesse
7da6afd9a0 dhcp-to-dns: use another :continue in loop 2026-05-07 15:58:08 +02:00
Christian Hesse
e29689965c check-certificates: use :break in loop 2026-05-07 15:58:08 +02:00
Christian Hesse
43affc44a0 Merge branch 'drop-builtin-trust-anchors' into next 2026-05-07 15:58:08 +02:00
Christian Hesse
bb665311a9 global-functions: deprecate $HexToNum 2026-05-07 15:58:08 +02:00
Christian Hesse
d609369427 update-tunnelbroker: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
9b46d16439 dhcp-to-dns: use :continue in loop 2026-05-07 15:58:08 +02:00
Christian Hesse
aad9dadd54 log-forward: fix indention 2026-05-07 15:58:08 +02:00
Christian Hesse
5adda8bba7 update-gre-address: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
93c4c18fb3 telegram-chat: use :continue in loop 2026-05-07 15:58:08 +02:00
Christian Hesse
b08c9c054e 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-07 15:58:08 +02:00
Christian Hesse
cff58e01a5 telegram-chat: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
352700937e netwatch-dns: fix indention 2026-05-07 15:58:08 +02:00
Christian Hesse
4f0ac049cc sms-forward: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
b593702ce1 netwatch-dns: use :continue in loop 2026-05-07 15:58:08 +02:00
Christian Hesse
c0ca1f8511 sms-action: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
9a9e9dc2bb netwatch-dns: fix indention 2026-05-07 15:58:08 +02:00
Christian Hesse
c8fad93ef3 ppp-on-up: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
a6446b5dbd netwatch-dns: use :continue in loop 2026-05-07 15:58:08 +02:00
Christian Hesse
0ac971c859 packages-update: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
196254fab4 global-functions: $ScriptInstallUpdate: fix indention 2026-05-07 15:58:08 +02:00
Christian Hesse
744b54d9a2 ospf-to-leds: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
35ded18d2e global-functions: $ScriptInstallUpdate: use :continue in loop 2026-05-07 15:58:08 +02:00
Christian Hesse
ab854e843b netwatch-notify: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
a9a8fa6372 fw-addr-lists: fix indention 2026-05-07 15:58:08 +02:00
Christian Hesse
d7b0bee564 netwatch-dns: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
8876af031e fw-addr-lists: use :continue in loop 2026-05-07 15:58:08 +02:00
Christian Hesse
21507a3d5a log-forward: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
c3d76842cb ipv6-update: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
5b9bcdeb6a ipsec-to-dns: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
4d2d0b21a2 hotspot-to-wpa-cleanup: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
e39195cb64 hotspot-to-wpa: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
c225882d8a gps-track: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
228f7ace92 fw-addr-lists: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
5c9d2f1238 firmware-upgrade-reboot: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
e997534e28 dhcpv6-client-lease: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
560d9dc945 dhcpv4-server-lease: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
6494c53e69 dhcp-to-dns: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
75f8e20313 dhcp-lease-comment: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
62626829a8 daily-psk: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
2d4c958a98 collect-wireless-mac: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
5f50572e99 check-routeros-update: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
83648e22ed check-perpetual-license: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
33e92e3e7e check-lte-firmware-upgrade: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
0c667a54a7 check-health: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
96f0775fc3 check-certificates: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
9361363a0f certificate-renew-issued: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
f3e82f5b2e capsman-rolling-upgrade: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
31d90cf1d7 capsman-download-packages: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
109ce7beeb backup-upload: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
d5612121eb backup-partition: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
c83d4810b4 backup-email: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
5f6959d280 backup-cloud: early exit with :exit 2026-05-07 15:58:08 +02:00
Christian Hesse
5961a1a8cd mod/notification-email: get property by name
This works now that we require RouterOS 7.21 anyway.
2026-05-07 15:58:07 +02:00
Christian Hesse
cfc0b51b64 INITIAL-COMMANDS: drop the old builtin-trust-anchors 2026-05-07 15:58:07 +02:00
Christian Hesse
383a309b9f 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-07 15:58:07 +02:00
Christian Hesse
0b3156760d global-functions: $CertificateDownload: drop the old builtin-trust-anchors 2026-05-07 15:58:07 +02:00
Christian Hesse
29cee16476 global-functions: $CertificateAvailable: drop the old builtin-trust-anchors 2026-05-07 15:58:07 +02:00
Christian Hesse
40c6a597d8 README: drop the old builtin-trust-anchors 2026-05-07 15:58:07 +02:00

View file

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