Commit graph

2014 commits

Author SHA1 Message Date
Christian Hesse 49d85c6def backup-upload: revert changes, add comment with warning
Turned out that using `/file/add ...` introduced a regression. Accessing
(reading and writing) file contents is limited to 4095 bytes.

This limitation does not exist for `:execute script=... file=...`, so
keep the old code. Also add a comment with warning.
2023-08-30 09:30:25 +02:00
Christian Hesse ce822a0276 backup-email: revert changes, add comment with warning
Turned out that using `/file/add ...` introduced a regression. Accessing
(reading and writing) file contents is limited to 4095 bytes.

This limitation does not exist for `:execute script=... file=...`, so
keep the old code. Also add a comment with warning.
2023-08-30 09:30:25 +02:00
Christian Hesse f099c2c9ea backup-upload: check configuration size before writing file 2023-08-30 09:30:25 +02:00
Christian Hesse 1e247542a5 backup-email: check configuration size before writing file 2023-08-30 09:30:25 +02:00
Christian Hesse f86cf27aa3 backup-upload: detect failure creating config file 2023-08-29 08:58:50 +02:00
Christian Hesse 07c6f5836a backup-email: detect failure creating config file 2023-08-29 08:58:50 +02:00
Christian Hesse ffc7521a35 backup-email: support indication of failure 2023-08-29 08:58:50 +02:00
Christian Hesse 3c96db5824 backup-email: write config file directly
This functionality was added in RouterOS 7.9beta4...
2023-08-29 08:58:50 +02:00
Christian Hesse 1dd1c5b03c backup-upload: write config file directly
This functionality was added in RouterOS 7.9beta4...
2023-08-29 08:58:50 +02:00
Christian Hesse 16844b935a hotspot-to-wpa-cleanup: show last-seen, not timeout 2023-08-29 08:58:50 +02:00
Christian Hesse 5b5c91da84 hotspot-to-wpa-cleanup: require RouterOS for wifiwave2
RouterOS before version 7.12beta3 had a bug where getting comment from
registration-table is not possible. Require that version at least.

This was fixed in SUP-124500.
2023-08-24 08:35:07 +02:00
Christian Hesse 047c74a4b3 global-functions: prepare user-agent for fetch in global variable 2023-08-18 15:23:20 +02:00
Christian Hesse 53a80c81b1 mod/ssh-keys-import: $SSHKeysImport: add check for key type 2023-08-18 15:23:20 +02:00
Christian Hesse ad6825571d mod/ssh-keys-import: support ed25519 keys...
... with RouterOS 7.12beta1
2023-08-18 15:23:20 +02:00
Christian Hesse 413be6f504 doc/mod/ssh-keys-import: drop duplicate key type
Stupid copy'n'paste error... 🫣
2023-08-18 15:23:20 +02:00
Christian Hesse 25d40688f7 sms-forward: drop RouterOS version dependency
... as global-functions depend on RouterOS 7.9beta already.
2023-08-18 15:23:20 +02:00
Christian Hesse c04bf2c9b7 netwatch-notify: drop RouterOS version dependency
... as global-functions depend on RouterOS 7.9beta already.
2023-08-18 15:23:20 +02:00
Christian Hesse ddd5608b38 mod/ssh-keys-import: drop RouterOS version dependency
... as global-functions depend on RouterOS 7.9beta already.
2023-08-18 15:23:20 +02:00
Christian Hesse 2c3e077b8e Merge branch 'wifiwave2' into next 2023-08-15 11:26:18 +02:00
Christian Hesse 92aca1aac0 news and migration for wifiwave2 2023-08-15 11:26:18 +02:00
Christian Hesse 6552b0c02d hotspot-to-wpa: convert to template, split capsman & wifiwave2 2023-08-09 16:30:18 +02:00
Christian Hesse 8ce1683733 daily-psk: add support for wifiwave2 2023-08-09 16:30:18 +02:00
Christian Hesse 6d76704a97 dhcp-lease-comment: add support for wifiwave2 2023-08-09 16:30:18 +02:00
Christian Hesse bac4a460f0 collect-wireless-mac: add support for wifiwave2 2023-08-09 16:30:18 +02:00
Christian Hesse d086e4a05f accesslist-duplicates: add support for wifiwave2 2023-08-09 16:30:18 +02:00
Christian Hesse d0ab951e3f capsman-download-packages: download a default set for wifiwave2
Well, AX devices can be arm or arm64... So let's just download packages
'routeros' and 'wifiwave2' - crossing fingers... 🤞
2023-08-09 16:30:18 +02:00
Christian Hesse 3cab917a61 capsman-download-packages: no download of missing package for wifiwave2
Sadly the log messages from wifiwave2 do not contain any hint what is
missing... So it's not possible to download missing files.
2023-08-09 16:30:18 +02:00
Christian Hesse 8428ba890d Makefile: support excluding blocks from templates 2023-08-09 16:30:18 +02:00
Christian Hesse e6964b4348 capsman-rolling-upgrade: convert to template, split capsman & wifiwave2 2023-08-09 16:30:18 +02:00
Christian Hesse 5e3d9d7460 capsman-download-packages: convert to template, split capsman & wifiwave2 2023-08-09 16:30:18 +02:00
Christian Hesse 5ea74968d9 capsman-download-packages: find script by code comment 2023-08-07 22:10:44 +02:00
Christian Hesse 0f787f9b03 Makefile: only regenerate existing scripts from templates 2023-08-07 22:10:44 +02:00
Christian Hesse 14dcea23b2 Makefile: support wifiwave2 in templates 2023-08-07 22:10:44 +02:00
Christian Hesse b014eb76c6 collect-wireless-mac: move comment up 2023-08-07 22:10:44 +02:00
Christian Hesse 1b947f445b Makefile: drop path rewriting, use pattern to filter 2023-08-07 22:10:44 +02:00
Christian Hesse c37739c2f6 mod/notification-telegram: introduce $PurgeTelegramQueue
... to purge the queue and remove the scheduler.
2023-08-06 16:35:51 +02:00
Christian Hesse 0aeb34e5e9 mod/notification-matrix: introduce $PurgeMatrixQueue
... to purge the queue and remove the scheduler.
2023-08-06 16:35:51 +02:00
Christian Hesse 9a5d55da0d mod/notification-email: introduce $PurgeEmailQueue
... to purge the queue and remove the scheduler.
2023-08-06 16:35:51 +02:00
Christian Hesse 5b789d298b check-certificates: properly handle in place updates
This worked just kind of... The certification was updated, but script
aborted before the notification was sent.
2023-07-23 22:01:43 +02:00
Christian Hesse be97de3627 check-routeros-update: also match platform for neighbors 2023-07-15 22:05:47 +02:00
Ben Harris fbf55292a4 check-routeros-update: match version with date suffix
Neighbor version can have a date suffix. This changes to match only
on the beginning.

Closes: GH-45

Co-authored-by: Christian Hesse <mail@eworm.de>
2023-07-13 08:00:14 +02:00
Christian Hesse 313e026229 netwatch-dns: increase startup delay
In RouterOS 7.9 netwatch itself comes with a (default) startup-delay of five
minutes. Increase our delay to make sure netwatch is active.
2023-06-28 11:29:02 +02:00
Christian Hesse 6247b739a1 netwatch-notify: drop the delay on startup...
... now that in RouterOS 7.9 netwatch itself comes with a startup-delay.
Hosts in state 'unknown' are just ignored.
2023-06-28 11:29:02 +02:00
Christian Hesse 3ed124a013 README: reference stable version 2023-06-28 11:29:02 +02:00
Christian Hesse 08e9634154 global-functions: $MkDir: drop extra block, restore indention
We had this to make the previous commit cleaner. No functional change.
2023-06-28 11:29:02 +02:00
Christian Hesse 5db9a71802 global-functions: $MkDir: drop old code with smb workaround...
... and increase required RouterOS.
2023-06-28 11:29:02 +02:00
Christian Hesse a030e2f946 Merge branch 'hotspot-to-wpa' into next 2023-06-28 11:26:51 +02:00
Christian Hesse 64ab9eec67 hotspot-to-wpa-cleanup: drop hard-coded timeout, get from comment
This keeps the default of four weeks, though.
2023-06-28 11:26:51 +02:00
Christian Hesse 16a551a0ee hotspot-to-wpa-cleanup: drop hard-coded server name, find by comment 2023-06-28 11:26:51 +02:00
Christian Hesse 0c8bc60648 hotspot-to-wpa: reject for two seconds...
... to make the device send a new DHCP request after.
2023-06-28 11:04:13 +02:00