Commit graph

2884 commits

Author SHA1 Message Date
Christian Hesse
923a6385bf fw-addr-lists: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
590030d391 firmware-upgrade-reboot: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
c8d423c7d5 dhcp-to-dns: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
87cde2cc2f dhcp-lease-comment: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
f9a6916827 daily-psk.capsman: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
bf322781d1 collect-wireless-mac: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
9d17beef03 check-routeros-update: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
91c8d30655 check-lte-firmware-upgrade: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
451df78dd8 check-health: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
00487f93d4 check-certificates: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
dc7642c1fd certificate-renew-issued: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
172d43288e capsman-rolling-upgrade: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
c909bef613 capsman-download-packages: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
268743ef6b backup-upload: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
95030b9b74 backup-partition: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
2c4053cff5 accesslist-duplicates: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
52b5490bab backup-email: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
36b81fab94 backup-cloud: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
ed6739b8bc global-functions: $ExitError: give script name in message 2024-12-09 11:49:50 +01:00
Christian Hesse
0d69f8952c global-functions: introduce $ExitError...
... as a simple macro to print error message on unintentional error.
2024-12-09 11:49:50 +01:00
Christian Hesse
09e8b1d219 netwatch-dns: explicitly expect type=A...
... which is provided since 7.16beta7 (but require next stable release
7.16 as that is available meanwhile).
2024-11-27 11:56:44 +01:00
Christian Hesse
6548f83ef4 dhcp-to-dns: explicitly expect type=A...
... which is provided since 7.16beta7 (but require next stable release
7.16 as that is available meanwhile).

I had this on my wishlist for a long time, and opened an issue in
March 2023 about it (SUP-111312).

Back then I changed the code to support both, see commit
779b3b8872.
2024-11-27 11:56:44 +01:00
Christian Hesse
e851cd5ad0 mod/ssh-keys-import: require RouterOS 7.16
Actually the requirement bumped with the change in commits:

* 9c945b1a32
  mod/ssh-keys-import: $SSHKeysImportFile: simplify looping lines

* 1f526b3561
  mod/ssh-keys-import: $SSHKeysImport: split with `:deserialize`
2024-11-27 11:56:09 +01:00
Christian Hesse
794525b706 fw-addr-lists: require RouterOS 7.16
Actually the requirement bumped with the change in commit:

* 084c246ef0
  fw-addr-lists: simplify looping lines
2024-11-27 10:00:27 +01:00
Christian Hesse
4d8dce9769 fw-addr-lists: spamhaus.org returned to 'GTS Root R4' 2024-11-22 14:06:22 +01:00
Christian Hesse
08ad4e5194 mode-button: do not act on disabled LED 2024-11-15 23:09:24 +01:00
Christian Hesse
53b6f7720e mode-button: catch runtime errors in executed code 2024-11-15 23:09:24 +01:00
Christian Hesse
1beda3aa7c mode-button: fix the caller parameter to $LogPrint
This is inside a function, so use just $0 here.
2024-11-15 23:01:22 +01:00
Christian Hesse
5b09469cc6 packages-update: drop check for device-mode downgrade...
... as things have been revised and this specific setting was removed.
2024-11-14 21:03:07 +01:00
Christian Hesse
a224fbc424 hotspot-to-wpa-cleanup: revert display of timeout value...
... as the timeout is a time value, and showing "4w00:00:00" (with lots
of zeros) is not any better. 😜

This reverts commit f1533b8962.
2024-11-13 08:59:30 +01:00
Christian Hesse
e5c3aeb5cd hotspot-to-wpa-cleanup: prepare real timeout value in variable...
... to make sure it is not re-calculated for every single lease.
2024-11-13 08:57:05 +01:00
Christian Hesse
ae655646ba hotspot-to-wpa-cleanup: clean up daily only 2024-11-12 18:02:26 +01:00
Christian Hesse
f1533b8962 hotspot-to-wpa-cleanup: use the timeout in message...
... not the actual value.
2024-11-12 17:53:30 +01:00
Christian Hesse
a545d0d39e check-routeros-update: always exit early if up to date...
... and just make the output and log dependent on terminal.
2024-11-12 17:46:02 +01:00
Christian Hesse
04172f0438 check-routeros-update: make invalid version string a warning 2024-11-12 17:42:54 +01:00
Christian Hesse
d97f63fa5a check-routeros-update: add specific message for empty version string 2024-11-12 17:41:54 +01:00
Christian Hesse
6c8fa8e639 check-routeros-update: replace hard-coded version 2024-11-12 17:40:05 +01:00
Christian Hesse
1f526b3561 mod/ssh-keys-import: $SSHKeysImport: split with :deserialize 2024-11-08 09:16:25 +01:00
Christian Hesse
0837391c38 mod/ssh-keys-import: $SSHKeysImportFile: let :deserialize split the fields 2024-11-08 09:16:18 +01:00
Christian Hesse
9c945b1a32 mod/ssh-keys-import: $SSHKeysImportFile: simplify looping lines 2024-11-08 09:15:45 +01:00
Christian Hesse
084c246ef0 fw-addr-lists: simplify looping lines
With `:deserialize` the **record** separator is always a new line. The
property `delimiter=` is a **field** reparator, so you can parse a lines
into an array.

We do not want (or need) that, so use new line as field separator. This
will result in an array with just one element, and we use that.

Also convert the data to line feed explicitly, just to be sure.
2024-11-06 22:42:40 +01:00
Christian Hesse
31dfdf7e62 doc/netwatch-dns: link to 'certificate name from browser' 2024-11-02 21:23:04 +01:00
Christian Hesse
d213369e73 doc/fw-addr-lists: link to 'certificate name from browser' 2024-11-02 21:23:04 +01:00
Christian Hesse
c5740c2328 doc/mod/notification-ntfy: link to 'certificate name from browser' 2024-11-02 21:23:04 +01:00
Christian Hesse
af942d90d3 doc/mod/notification-matrix: link to 'certificate name from browser' 2024-11-02 21:23:04 +01:00
Christian Hesse
3c0852d6b8 introduce CERTIFICATES, guide to find root certificate 2024-11-02 21:23:04 +01:00
Christian Hesse
3506f71071 global-functions: $CertificateAvailable: fail without CommonName 2024-10-30 22:49:48 +01:00
Christian Hesse
a6584170c3 certs: check cert for matrix.org 2024-10-29 15:00:26 +01:00
Christian Hesse
3169270dbd doc/mod/notification-matrix: better document certificate import 2024-10-29 15:00:26 +01:00
Christian Hesse
e803f8b3c0 ipv6-update: create a dynamic address-list entry only
This should make sure that the script runs once after reboot, even if
the prefix does not change.

An existing static entry needs to be removed to make this work!

https://github.com/eworm-de/routeros-scripts/issues/85
2024-10-25 18:20:17 +02:00