Compare commits

..

74 commits

Author SHA1 Message Date
Christian Hesse
65dac1178a dhcp-to-dns: support to ignore networks
Closes: https://github.com/eworm-de/routeros-scripts/issues/119
2026-04-27 17:23:28 +02:00
Christian Hesse
eb49f3375b bump required RouterOS version for all scripts 2026-04-27 17:23:28 +02:00
Christian Hesse
8f9717deae global-functions: $NetMask6: use shift operator...
... and drop the workaround. This requires RouterOS 7.22beta3.
2026-04-27 17:23:28 +02:00
Christian Hesse
958c93eef9 Merge branch 'break-in-loop' into next 2026-04-27 17:23:28 +02:00
Christian Hesse
cb1e12b06e Merge branch 'continue-in-loop' into next 2026-04-27 17:23:28 +02:00
Christian Hesse
6f160bbb21 telegram-chat: fix indention 2026-04-27 17:23:28 +02:00
Christian Hesse
416573b19b Merge branch 'early-exit-with-exit' into next 2026-04-27 17:23:28 +02:00
Christian Hesse
c6f1dd78df dhcp-to-dns: fix indention 2026-04-27 17:23:28 +02:00
Christian Hesse
c87f3dec4b telegram-chat: use :break in loop 2026-04-27 17:23:28 +02:00
Christian Hesse
90a8b4c172 Merge branch 'compare-ids' into next 2026-04-27 17:23:28 +02:00
Christian Hesse
9fcbcaff3c global-functions: deprecate $ExitError 2026-04-27 17:23:28 +02:00
Christian Hesse
84190da698 dhcp-to-dns: use another :continue in loop 2026-04-27 17:23:28 +02:00
Christian Hesse
b7f4893182 check-certificates: use :break in loop 2026-04-27 17:23:28 +02:00
Christian Hesse
805eef8160 Merge branch 'drop-builtin-trust-anchors' into next 2026-04-27 17:23:28 +02:00
Christian Hesse
d0f997785e global-functions: deprecate $HexToNum 2026-04-27 17:23:28 +02:00
Christian Hesse
159c51f577 update-tunnelbroker: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
52ace623fc dhcp-to-dns: use :continue in loop 2026-04-27 17:23:28 +02:00
Christian Hesse
a8cef70ffe mod/notification-email: get property by name
This works now that we require RouterOS 7.21 anyway.
2026-04-27 17:23:28 +02:00
Christian Hesse
052db9a9d0 INITIAL-COMMANDS: drop the old builtin-trust-anchors 2026-04-27 17:23:28 +02:00
Christian Hesse
f13e4f582a log-forward: fix indention 2026-04-27 17:23:28 +02:00
Christian Hesse
4897edd45e update-gre-address: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
54d1f6c9b2 telegram-chat: use :continue in loop 2026-04-27 17:23:28 +02:00
Christian Hesse
fb7adb3a18 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-04-27 17:23:28 +02:00
Christian Hesse
030868fa9e global-functions: $CertificateDownload: drop the old builtin-trust-anchors 2026-04-27 17:23:28 +02:00
Christian Hesse
fb0fb6b6ec 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-04-27 17:23:28 +02:00
Christian Hesse
9fc3f254e0 telegram-chat: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
06eb99be80 netwatch-dns: fix indention 2026-04-27 17:23:28 +02:00
Christian Hesse
b637bf4731 Merge branch 'backup-filename-date' into next 2026-04-27 17:23:28 +02:00
Christian Hesse
9093cb3d04 global-functions: $CertificateAvailable: drop the old builtin-trust-anchors 2026-04-27 17:23:28 +02:00
Christian Hesse
a995c13126 sms-forward: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
5a5a31c88c netwatch-dns: use :continue in loop 2026-04-27 17:23:28 +02:00
Christian Hesse
08dda6baf5 backup-{email,upload}: add setting in configuration 2026-04-27 17:23:28 +02:00
Christian Hesse
66f94f4ff0 README: drop the old builtin-trust-anchors 2026-04-27 17:23:28 +02:00
Christian Hesse
01f8315d84 sms-action: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
61241a81a6 netwatch-dns: fix indention 2026-04-27 17:23:28 +02:00
Christian Hesse
f09db826f4 ppp-on-up: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
f9e6c61960 netwatch-dns: use :continue in loop 2026-04-27 17:23:28 +02:00
Christian Hesse
b3b29f9f2d packages-update: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
9d766624f4 global-functions: $ScriptInstallUpdate: fix indention 2026-04-27 17:23:28 +02:00
Christian Hesse
4a9d52a928 ospf-to-leds: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
d96a38c605 global-functions: $ScriptInstallUpdate: use :continue in loop 2026-04-27 17:23:28 +02:00
Christian Hesse
6b518e09a8 netwatch-notify: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
0c25b9ac5b fw-addr-lists: fix indention 2026-04-27 17:23:28 +02:00
Christian Hesse
3898ee6bbb netwatch-dns: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
d154dc8376 fw-addr-lists: use :continue in loop 2026-04-27 17:23:28 +02:00
Christian Hesse
b94dbf99c0 log-forward: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
c6fdc325e8 ipv6-update: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
ee30f72f6c ipsec-to-dns: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
bcc93d7542 hotspot-to-wpa-cleanup: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
cf86487f71 hotspot-to-wpa: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
f02fd9abcd gps-track: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
f26d6cb6f8 fw-addr-lists: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
ed44d6cedd firmware-upgrade-reboot: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
a82e6a66cc dhcpv6-client-lease: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
5321104afc dhcpv4-server-lease: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
77115132f3 dhcp-to-dns: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
2d1e07035c dhcp-lease-comment: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
c42ab6965a daily-psk: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
bc26b2a695 collect-wireless-mac: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
7ee31069aa check-routeros-update: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
21551b80b3 check-perpetual-license: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
7122b11a34 check-lte-firmware-upgrade: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
8944e922f7 check-health: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
54855df122 check-certificates: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
ba2293fd46 certificate-renew-issued: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
ff337a5c29 capsman-rolling-upgrade: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
3ef2b27cf9 capsman-download-packages: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
18ae051c13 backup-upload: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
1fa05a6a5c backup-partition: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
3621c09071 backup-email: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
b870d2ab49 backup-cloud: early exit with :exit 2026-04-27 17:23:28 +02:00
Christian Hesse
7a17e42919 backup-upload: drop the GMT offset from filename...
... as it is of little help only. Also it is ambiguous due
to signdness being dropped when cleaning the name.
2026-04-27 17:22:55 +02:00
Christian Hesse
bfc9f3bd86 backup-email: drop the GMT offset from filename...
... as it is of little help only. Also it is ambiguous due
to signdness being dropped when cleaning the name.
2026-04-27 17:18:57 +02:00
Christian Hesse
5fb4761590 backup-upload: support date & time in filename 2026-04-27 17:18:57 +02:00
2 changed files with 4 additions and 4 deletions

View file

@ -70,8 +70,8 @@
# filename based on identity
:local DirName ("tmpfs/" . $ScriptName);
:local Clock [ /system/clock/get ];
:local FileName [ $CleanName ($Identity . "." . $Domain . [ $IfThenElse ($BackupFileNameDate = true) \
("-" . $Clock->"date" . "-" . $Clock->"time" . "-" . $Clock->"gmt-offset") "" ] ) ];
:local FileName [ $CleanName ($Identity . "." . $Domain . [ $IfThenElse \
($BackupFileNameDate = true) ("-" . $Clock->"date" . "-" . $Clock->"time") "" ] ) ];
:local FilePath ($DirName . "/" . $FileName);
:local BackupFile "none";
:local ExportFile "none";

View file

@ -70,8 +70,8 @@
# filename based on identity
:local DirName ("tmpfs/" . $ScriptName);
:local Clock [ /system/clock/get ];
:local FileName [ $CleanName ($Identity . "." . $Domain . [ $IfThenElse ($BackupFileNameDate = true) \
("-" . $Clock->"date" . "-" . $Clock->"time" . "-" . $Clock->"gmt-offset") "" ] ) ];
:local FileName [ $CleanName ($Identity . "." . $Domain . [ $IfThenElse \
($BackupFileNameDate = true) ("-" . $Clock->"date" . "-" . $Clock->"time") "" ] ) ];
:local FilePath ($DirName . "/" . $FileName);
:local BackupFile "none";
:local ExportFile "none";