Compare commits

..

71 commits

Author SHA1 Message Date
Christian Hesse
19dd532f65 Merge branch 'dhcp-to-dns' into next 2026-07-07 15:15:22 +02:00
Christian Hesse
0c78dd0faf bump required RouterOS version for all scripts 2026-07-07 15:15:22 +02:00
Christian Hesse
e73880551c dhcp-to-dns: allow to ignore for specific lease 2026-07-07 15:15:22 +02:00
Christian Hesse
1429968890 global-functions: $NetMask6: use shift operator...
... and drop the workaround. This requires RouterOS 7.22beta3.
2026-07-07 15:15:22 +02:00
Christian Hesse
c9526d75bb update list of contributors 2026-07-07 15:15:22 +02:00
Christian Hesse
9e5bd29007 Merge branch 'break-in-loop' into next 2026-07-07 15:15:22 +02:00
Łukasz Witkowski
3aaa02b12f dhcp-to-dns: allow to specify domain for CNAMEs...
... in network or lease.
2026-07-07 15:15:22 +02:00
Christian Hesse
35ab094114 Merge branch 'continue-in-loop' into next 2026-07-07 15:15:22 +02:00
Christian Hesse
c0dd436f6d telegram-chat: fix indention 2026-07-07 15:15:22 +02:00
Łukasz Witkowski
e0f590c917 dhcp-to-dns: set $LeaseInfo 2026-07-07 15:15:22 +02:00
Christian Hesse
71493aec0b Merge branch 'early-exit-with-exit' into next 2026-07-07 15:15:22 +02:00
Christian Hesse
35c2ada939 dhcp-to-dns: fix indention 2026-07-07 15:15:22 +02:00
Christian Hesse
3071a5a39d telegram-chat: use :break in loop 2026-07-07 15:15:22 +02:00
Łukasz Witkowski
79a23a3b93 dhcp-to-dns: convert DNS names to lower case 2026-07-07 15:15:22 +02:00
Christian Hesse
a34eed2fe2 Merge branch 'compare-ids' into next 2026-07-07 15:15:22 +02:00
Christian Hesse
83534d0b74 global-functions: deprecate $ExitError 2026-07-07 15:15:22 +02:00
Christian Hesse
333989e82b dhcp-to-dns: use another :continue in loop 2026-07-07 15:15:22 +02:00
Christian Hesse
b8e6ab1f09 check-certificates: use :break in loop 2026-07-07 15:15:22 +02:00
Christian Hesse
145bab1bff dhcp-to-dns: support to ignore networks
Closes: https://github.com/eworm-de/routeros-scripts/issues/119
2026-07-07 15:15:22 +02:00
Christian Hesse
55eef9c692 global-functions: $ScriptInstallUpdate: log and print error
It is no longer expected to fail... So let's complain.
2026-07-07 15:15:22 +02:00
Christian Hesse
cbbd527017 global-functions: deprecate $HexToNum 2026-07-07 15:15:22 +02:00
Christian Hesse
91d1ca7939 update-tunnelbroker: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
c21bfff044 dhcp-to-dns: use :continue in loop 2026-07-07 15:15:22 +02:00
Christian Hesse
3801cc4847 global-functions: $ScriptInstallUpdate: skip checksums if not rsc.eworm.de
The file is not in git repository, but generated when deploying to my
server only.
2026-07-07 15:15:22 +02:00
Christian Hesse
024fd4369e log-forward: fix indention 2026-07-07 15:15:22 +02:00
Christian Hesse
9da616da20 update-gre-address: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
8428a2e5a4 telegram-chat: use :continue in loop 2026-07-07 15:15:22 +02:00
Christian Hesse
1489d096e0 log-forward: use comparison for ids
This was introduced with RouterOS 7.22beta1.

Initializing $LogForwardLast with boolean value looks odd, but this is
required to match the very first message.
2026-07-07 15:15:22 +02:00
Christian Hesse
023793ca8f telegram-chat: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
50283cfcc0 netwatch-dns: fix indention 2026-07-07 15:15:22 +02:00
Christian Hesse
3ddbfe63f2 sms-forward: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
a2823d3bc4 netwatch-dns: use :continue in loop 2026-07-07 15:15:22 +02:00
Christian Hesse
f48de1747f sms-action: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
17ee5e7693 netwatch-dns: fix indention 2026-07-07 15:15:22 +02:00
Christian Hesse
dee266ed4d ppp-on-up: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
a2410796df netwatch-dns: use :continue in loop 2026-07-07 15:15:22 +02:00
Christian Hesse
5d4d3975ed packages-update: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
b79a50ad26 global-functions: $ScriptInstallUpdate: fix indention 2026-07-07 15:15:22 +02:00
Christian Hesse
7fb203f16f ospf-to-leds: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
51a9d94ad9 global-functions: $ScriptInstallUpdate: use :continue in loop 2026-07-07 15:15:22 +02:00
Christian Hesse
e75054c8dd netwatch-notify: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
cfd9366aa9 global-functions: $CleanName: use :continue in loop 2026-07-07 15:15:22 +02:00
Christian Hesse
5a28771d86 netwatch-dns: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
d838755191 fw-addr-lists: fix indention 2026-07-07 15:15:22 +02:00
Christian Hesse
7f79f7b0a1 log-forward: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
d93cc322ec fw-addr-lists: use :continue in loop 2026-07-07 15:15:22 +02:00
Christian Hesse
9e9cc6baa6 ipv6-update: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
718f276149 ipsec-to-dns: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
5cedf9965c hotspot-to-wpa-cleanup: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
2a82bbe529 hotspot-to-wpa: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
9e419cfd7f gps-track: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
0cb16041e5 fw-addr-lists: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
69e1160ccb firmware-upgrade-reboot: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
3a44047b44 dhcpv6-client-lease: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
f01917b88f dhcpv4-server-lease: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
7d06eea3af dhcp-to-dns: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
3ae3169eb0 dhcp-lease-comment: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
64bf883f82 daily-psk: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
c65480d0f7 collect-wireless-mac: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
6f2ed76bcd check-routeros-update: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
f0aa3b90d7 check-perpetual-license: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
9400d07c0d check-lte-firmware-upgrade: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
325c2cb830 check-health: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
5c7115a116 check-certificates: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
1cfa2c41b4 certificate-renew-issued: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
c5f7de1dce capsman-rolling-upgrade: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
6aa9b81024 capsman-download-packages: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
c71a82138a backup-upload: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
a924e1aedd backup-partition: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
1f622ed24f backup-email: early exit with :exit 2026-07-07 15:15:22 +02:00
Christian Hesse
5cf181601d backup-cloud: early exit with :exit 2026-07-07 15:15:22 +02:00

View file

@ -1262,12 +1262,16 @@
:local DeviceMode [ /system/device-mode/get ]; :local DeviceMode [ /system/device-mode/get ];
:local CheckSums ({}); :local CheckSums ({});
:do { :if ([ :pick $ScriptUpdatesBaseUrl 0 21 ] = "https://rsc.eworm.de/") do={
:local Url ($ScriptUpdatesBaseUrl . "checksums.json" . $ScriptUpdatesUrlSuffix); :onerror Err {
$LogPrint debug $0 ("Fetching checksums from url: " . $Url); :local Url ($ScriptUpdatesBaseUrl . "checksums.json" . $ScriptUpdatesUrlSuffix);
:set CheckSums [ :deserialize from=json ([ /tool/fetch check-certificate=yes-without-crl \ $LogPrint debug $0 ("Fetching checksums from url: " . $Url);
http-header-field=({ [ $FetchUserAgentStr $0 ] }) $Url output=user as-value ]->"data") ]; :set CheckSums [ :deserialize from=json ([ /tool/fetch check-certificate=yes-without-crl \
} on-error={ } http-header-field=({ [ $FetchUserAgentStr $0 ] }) $Url output=user as-value ]->"data") ];
} do={
$LogPrint warning $0 ("Failed downloading checksums: " . $Err);
}
}
:foreach Script in=[ /system/script/find where source~"^#!rsc by RouterOS\r?\n" ] do={ :foreach Script in=[ /system/script/find where source~"^#!rsc by RouterOS\r?\n" ] do={
:local ScriptVal [ /system/script/get $Script ]; :local ScriptVal [ /system/script/get $Script ];