Commit graph

2440 commits

Author SHA1 Message Date
Christian Hesse
de9dde1b14 global-functions: $ScriptInstallUpdate: add a version check for scripts
New RouterOS releases bring new features, and thus new syntax.
Installing a new script on old RouterOS results in syntax errors. We
want to give clear warning messages, so by adding an extra comment into
the script...

    # requires RouterOS, version=7.8beta3

... installing on unsupported RouterOS version is mitigated.
2023-01-20 11:26:53 +01:00
Christian Hesse
9887ab0849 lease-script: use $Grep 2023-01-20 11:26:53 +01:00
Christian Hesse
b834517baa global-functions: implement $Grep...
... that returns the first line that matches a pattern.
2023-01-20 11:26:53 +01:00
Christian Hesse
072d349473 log-forward: cache the result of $LogForwardFilterLogForwarding
Looks like the function is called for every message to match otherwise. 😳
2023-01-20 11:26:53 +01:00
Christian Hesse
2294ac77a8 doc/log-forward: add tips and tricks 2023-01-20 00:34:27 +01:00
Christian Hesse
cfb31e840c doc/log-forward: add some more details 2023-01-18 11:53:57 +01:00
Christian Hesse
03fb459ea4 ipsec-to-dns: handle "CN=" from peer's id
This was missing in commit bff6689b10 and
cause the dns entry to be delete and re-created over and over again.
2023-01-17 12:34:05 +01:00
Christian Hesse
23e5c01a42 global-functions: $MkDir: no early continue for dir "tmpfs"...
... as we want a RAM disk.
2023-01-12 23:43:38 +01:00
Christian Hesse
aabc6b22fe doc/daily-psk: drop the start-date from scheduler 2023-01-12 23:28:37 +01:00
Christian Hesse
ab306ad3c7 doc/daily-psk: add missing bits for CAPsMAN 2023-01-12 23:26:23 +01:00
Christian Hesse
f67dc0218b global-functions: $ScriptInstallUpdate: handle config version decrease...
... and log a warning.
2023-01-12 15:40:05 +01:00
Christian Hesse
47a657d25c mod/notification-*: support extra text (or emojis 🚀) in notification tags 2023-01-12 15:40:05 +01:00
Christian Hesse
c8e22f33c2 mod/notification-email: split off generation of subject 2023-01-11 12:28:31 +01:00
Christian Hesse
a953a8fa59 mod/notification-email: move $QuotedPrintable (from global-functions)
This is used for e-mail only...
2023-01-11 12:28:31 +01:00
Christian Hesse
329bef94df log-forward: do not declare unused function 2023-01-11 12:28:31 +01:00
Christian Hesse
868557a24a log-forward: generate filter in mod/notification-email 2023-01-11 12:28:31 +01:00
Christian Hesse
34ed387343 use arrows with emoji representation
We had...

  ◀ Go back to main README
  ▲ Go back to top

... and switch to...

  ⬅️ Go back to main README
  ⬆️ Go back to top
2023-01-11 12:28:31 +01:00
Christian Hesse
a38272e15e README: install custom script from routeros-scripts-custom 2023-01-11 12:28:31 +01:00
Christian Hesse
f211a8d099 README: add linked custom scripts & modules 2023-01-10 21:21:58 +01:00
Christian Hesse
80671e3803 doc/sms-forward: take care of harmful commands in hooks 2023-01-10 08:58:33 +01:00
Christian Hesse
1ea613e8a0 update list of contributors 2023-01-10 08:58:33 +01:00
Anatoly Bubenkov
ea09a18d3f sms-forward: support hooks 2023-01-10 08:58:33 +01:00
Christian Hesse
88b34cfb39 doc/sms-forward: reorder configuration 2023-01-09 15:35:57 +01:00
Anatoly Bubenkov
03ca9464df .gitignore: ignore folder settings file 2023-01-02 23:49:26 +01:00
Christian Hesse
84be9123ef .gitignore: ignore files created by patch command 2023-01-02 23:49:26 +01:00
Christian Hesse
b730264d80 .gitignore: add comments 2023-01-02 23:49:26 +01:00
Christian Hesse
d1caf2bf10 backup-upload: keep floppy emoji for failure 2023-01-02 23:49:26 +01:00
Christian Hesse
4f931db1c3 backup-cloud: keep floppy emoji for failure 2023-01-02 23:49:26 +01:00
Christian Hesse
2f774f723d update copyright for 2023 2023-01-02 23:49:26 +01:00
Christian Hesse
9983a69188 README: RouterOS v7 path syntax
Missed one in b6ddc5968e7a3393bb6e9b0c0ccf96379efc62b4...
2022-12-19 09:49:45 +01:00
Christian Hesse
a3e2822a0a backup-upload: switch path to tmpfs 2022-12-13 21:50:32 +01:00
Christian Hesse
d3351bcf18 backup-email: switch path to tmpfs 2022-12-13 21:50:32 +01:00
Christian Hesse
f8258b90a7 backup-upload: create directory later 2022-12-13 21:50:32 +01:00
Christian Hesse
8b2571dc49 backup-email: create directory later 2022-12-13 21:50:32 +01:00
Christian Hesse
16bfe4de7e global-functions: $MkDir: create a tmpfs (RAM disk)...
... if the path starts with "tmpfs/". This helps to mitigate flash wear.
2022-12-13 21:50:32 +01:00
Christian Hesse
1579330864 global-functions: $MkDir: create directories recursively 2022-12-13 21:25:07 +01:00
Christian Hesse
58f769ac00 global-functions: $MkDir: rename internal variable 2022-12-13 10:37:56 +01:00
Christian Hesse
446d5c89fc global-functions: $MkDir: fail if non-directory path exists 2022-12-13 10:31:41 +01:00
Christian Hesse
9c42263988 global-functions: check RouterOS version before loading modules 2022-12-12 15:16:36 +01:00
Christian Hesse
7f7c3a7a70 global-functions: $SymbolByUnicodeName: append variation selector-16...
... to specify that the preceding character should be displayed with emoji
presentation.

https://unicode-table.com/en/FE0F/
2022-12-06 16:41:14 +01:00
Christian Hesse
8854d03ea2 global-functions: introduce $IsMacLocallyAdministered...
... and use it in $GetMacVendor.
2022-11-29 17:07:40 +01:00
Christian Hesse
0ad94b042d netwatch-notify: support type https-get
... which was introduced in RouterOS 7.7beta8.
2022-11-25 08:39:07 +01:00
Christian Hesse
ad85f22540 global-functions: $IsTimeSync: no cloud on x86 2022-11-22 22:24:59 +01:00
Christian Hesse
ef7360453f global-functions: $IsTimeSync: no cloud with CHR free license 2022-11-22 22:23:51 +01:00
Christian Hesse
a7bdebbfb0 doc/mod/notification-email: mention correct time 2022-11-22 21:49:34 +01:00
Christian Hesse
89c0fde465 mod/notification-email: put status in scheduler comment 2022-11-22 21:28:45 +01:00
Christian Hesse
03d1927067 mod/notification-email: set scheduler interval earlier
... to make sure the checks are not re-run every second.
2022-11-22 21:28:26 +01:00
Christian Hesse
ab3047ee82 mod/notification-email: reference scheduler from variable 2022-11-22 21:27:51 +01:00
Christian Hesse
c2a29da9f2 global-functions: $ScriptLock: use shorter random string
... but with all characters from alphabet with $GetRandom20CharAlNum.
2022-11-22 19:05:29 +01:00
Christian Hesse
3c4595e82b global-functions: $MkDir: use shorter random string
... but with all characters from alphabet with $GetRandom20CharAlNum.
2022-11-22 19:05:02 +01:00