Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2024-12-25 | global-functions: $ParseKeyValueStore: support JSON as input | 1 | -0/+7 | ||
This used to require a key=value store, separated with commas. An example for `netwatch-notify` is: /tool/netwatch/add comment="notify, name=example.com" host=93.184.215.14; Now JSON is supported as well, so you could use: /tool/netwatch/add comment="{\"notify\":true,\"name\":\"example.com\"}" host=93.184.215.14; Looks more clumsy here, but may be of help in more complex setups... | |||||
2024-12-25 | global-functions: $ParseKeyValueStore: properly return boolean values | 1 | -0/+2 | ||
2024-12-25 | global-functions: $ParseKeyValueStore: split key and value... | 1 | -2/+3 | ||
... into separate variables. | |||||
2024-12-17 | mod/notification-ntfy: add basic authentication in headers | 1 | -3/+6 | ||
This makes it a bit easier and straight forward as we pass the headers anyway. | |||||
2024-12-17 | mod/notification-ntfy: support authentication with bearer token | 3 | -0/+9 | ||
Closes: https://github.com/eworm-de/routeros-scripts/issues/86 | |||||
2024-12-17 | fw-addr-lists: do not fail on invalid json data | 1 | -1/+3 | ||
2024-12-17 | mod/notification-email: $FlushEmailQueue: just return on empty queue | 1 | -0/+4 | ||
2024-12-17 | mod/notification-email: $FlushEmailQueue: move the check up... | 1 | -4/+6 | ||
... as this needs to be done before creating a scheduler. 😜 Also remove the scheduler and return. | |||||
2024-12-17 | mod/notification-email: $FlushEmailQueue: create scheduler if missing... | 1 | -2/+8 | ||
... as it is required to be modified several times below. | |||||
2024-12-17 | mod/notification-email: $FlushEmailQueue: return on purge | 1 | -0/+6 | ||
2024-12-17 | mod/notification-email: $FlushEmailQueue: return on success | 1 | -3/+4 | ||
2024-12-17 | global-functions: $WaitForFile: delay until "complete"... | 1 | -0/+10 | ||
Well, turns out that waiting for existence of a file is not sufficient. Chances are that a file is available just partly, so wait until the size no longer changes... Let's hope that works as expected. 🤞 | |||||
2024-12-17 | mode-button: support led toggle without extra script | 1 | -1/+1 | ||
2024-12-17 | leds-toggle-mode: toggle in one call... | 1 | -5/+1 | ||
... and drop the condition. | |||||
2024-12-17 | mod/notification-email: increase retry interval on failure | 1 | -2/+4 | ||
2024-12-17 | mod/notification-email: drop useless safeguard | 1 | -1/+1 | ||
Guess it was useful back in the day. Now the function exits early if the queue is empty... So this can never be zero. | |||||
2024-12-09 | Merge branch 'func-exit-error' into next | 12 | -39/+77 | ||
2024-12-09 | mode-button: $ModeButtonScheduler: explicitly name the variable | 1 | -4/+8 | ||
2024-12-09 | mod/ssh-keys-import: $SSHKeysImportFile: use $ExitError to indicate ↵ | 1 | -2/+4 | ||
unintentional error | |||||
2024-12-09 | check-routeros-update: pass script name to local function | 1 | -6/+8 | ||
2024-12-09 | mod/ssh-keys-import: $SSHKeysImport: use $ExitError to indicate ↵ | 1 | -2/+4 | ||
unintentional error | |||||
2024-12-09 | Merge branch 'exit-error' into next | 57 | -57/+359 | ||
2024-12-09 | mod/scriptrunonce: $ScriptRunOnce: use $ExitError to indicate unintentional ↵ | 1 | -2/+4 | ||
error | |||||
2024-12-09 | global-functions: $FetchHuge: passing boolean to function is still broken... ↵ | 1 | -4/+4 | ||
🤨 | |||||
2024-12-09 | update-tunnelbroker: use $ExitError to indicate unintentional error | 1 | -1/+7 | ||
2024-12-09 | mod/notification-telegram: $SendTelegram: use $ExitError to indicate ↵ | 1 | -2/+4 | ||
unintentional error | |||||
2024-12-09 | update-gre-address: use $ExitError to indicate unintentional error | 1 | -1/+5 | ||
2024-12-09 | mod/notification-telegram: $FlushTelegramQueue: use $ExitError to indicate ↵ | 1 | -2/+4 | ||
unintentional error | |||||
2024-12-09 | telegram-chat: use $ExitError to indicate unintentional error | 1 | -1/+8 | ||
2024-12-09 | mod/notification-ntfy: $SendNtfy: use $ExitError to indicate unintentional error | 1 | -2/+4 | ||
2024-12-09 | sms-forward: use $ExitError to indicate unintentional error | 1 | -1/+7 | ||
2024-12-09 | mod/notification-ntfy: $FlushNtfyQueue: use $ExitError to indicate ↵ | 1 | -2/+4 | ||
unintentional error | |||||
2024-12-09 | sms-action: use $ExitError to indicate unintentional error | 1 | -1/+5 | ||
2024-12-09 | mod/notification-matrix: $SendMatrix: use $ExitError to indicate ↵ | 1 | -2/+4 | ||
unintentional error | |||||
2024-12-09 | ppp-on-up: use $ExitError to indicate unintentional error | 1 | -1/+5 | ||
2024-12-09 | mod/notification-matrix: $FlushMatrixQueue: use $ExitError to indicate ↵ | 1 | -2/+4 | ||
unintentional error | |||||
2024-12-09 | packages-update: use $ExitError to indicate unintentional error | 1 | -1/+13 | ||
2024-12-09 | mod/notification-email: $SendEMail: use $ExitError to indicate unintentional ↵ | 1 | -2/+4 | ||
error | |||||
2024-12-09 | ospf-to-leds: use $ExitError to indicate unintentional error | 1 | -1/+5 | ||
2024-12-09 | mod/notification-email: $FlushEmailQueue: use $ExitError to indicate ↵ | 1 | -2/+4 | ||
unintentional error | |||||
2024-12-09 | netwatch-notify: use $ExitError to indicate unintentional error | 1 | -1/+5 | ||
2024-12-09 | mod/ipcalc: $IPCalc: use $ExitError to indicate unintentional error | 1 | -2/+4 | ||
2024-12-09 | netwatch-dns: use $ExitError to indicate unintentional error | 1 | -1/+8 | ||
2024-12-09 | mod/inspectvar: $InspectVar: use $ExitError to indicate unintentional error | 1 | -2/+4 | ||
2024-12-09 | mode-button: use $ExitError to indicate unintentional error | 1 | -1/+4 | ||
2024-12-09 | mod/bridge-port-vlan: $BridgePortVlan: use $ExitError to indicate ↵ | 1 | -2/+4 | ||
unintentional error | |||||
2024-12-09 | log-forward: use $ExitError to indicate unintentional error | 1 | -1/+6 | ||
2024-12-09 | mod/bridge-port-to: $BridgePortTo: use $ExitError to indicate unintentional ↵ | 1 | -2/+4 | ||
error | |||||
2024-12-09 | lease-script: use $ExitError to indicate unintentional error | 1 | -1/+7 | ||
2024-12-09 | mode-button: $ModeButtonScheduler: use $ExitError to indicate unintentional ↵ | 1 | -2/+4 | ||
error | |||||
2024-12-09 | ipv6-update: use $ExitError to indicate unintentional error | 1 | -1/+7 | ||
2024-12-09 | global-functions: $SendNotification: use $ExitError to indicate ↵ | 1 | -2/+4 | ||
unintentional error | |||||
2024-12-09 | ipsec-to-dns: use $ExitError to indicate unintentional error | 1 | -1/+5 | ||
2024-12-09 | global-functions: $ScriptInstallUpdate: use $ExitError to indicate ↵ | 1 | -2/+4 | ||
unintentional error | |||||
2024-12-09 | hotspot-to-wpa: use $ExitError to indicate unintentional error | 3 | -3/+21 | ||
2024-12-09 | global-functions: $ExitError: give matching message for functions | 1 | -3/+5 | ||
2024-12-09 | hotspot-to-wpa-cleanup: use $ExitError to indicate unintentional error | 3 | -3/+15 | ||
2024-12-09 | gps-track: use $ExitError to indicate unintentional error | 1 | -1/+5 | ||
2024-12-09 | fw-addr-lists: use $ExitError to indicate unintentional error | 1 | -1/+5 | ||
2024-12-09 | firmware-upgrade-reboot: use $ExitError to indicate unintentional error | 1 | -1/+7 | ||
2024-12-09 | dhcp-to-dns: use $ExitError to indicate unintentional error | 1 | -1/+5 | ||
2024-12-09 | dhcp-lease-comment: use $ExitError to indicate unintentional error | 4 | -4/+20 | ||
2024-12-09 | daily-psk.capsman: use $ExitError to indicate unintentional error | 4 | -4/+20 | ||
2024-12-09 | collect-wireless-mac: use $ExitError to indicate unintentional error | 4 | -4/+20 | ||
2024-12-09 | check-routeros-update: use $ExitError to indicate unintentional error | 1 | -2/+25 | ||
2024-12-09 | check-lte-firmware-upgrade: use $ExitError to indicate unintentional error | 1 | -1/+5 | ||
2024-12-09 | check-health: use $ExitError to indicate unintentional error | 1 | -1/+6 | ||
2024-12-09 | check-certificates: use $ExitError to indicate unintentional error | 1 | -1/+5 | ||
2024-12-09 | certificate-renew-issued: use $ExitError to indicate unintentional error | 1 | -1/+5 | ||
2024-12-09 | capsman-rolling-upgrade: use $ExitError to indicate unintentional error | 3 | -3/+15 | ||
2024-12-09 | capsman-download-packages: use $ExitError to indicate unintentional error | 3 | -3/+21 | ||
2024-12-09 | backup-upload: use $ExitError to indicate unintentional error | 1 | -1/+7 | ||
2024-12-09 | backup-partition: use $ExitError to indicate unintentional error | 1 | -1/+11 | ||
2024-12-09 | accesslist-duplicates: use $ExitError to indicate unintentional error | 4 | -4/+16 | ||
2024-12-09 | backup-email: use $ExitError to indicate unintentional error | 1 | -1/+9 | ||
2024-12-09 | backup-cloud: use $ExitError to indicate unintentional error | 1 | -1/+6 | ||
2024-12-09 | global-functions: $ExitError: give script name in message | 1 | -1/+1 | ||
2024-12-09 | global-functions: introduce $ExitError... | 1 | -0/+13 | ||
... as a simple macro to print error message on unintentional error. | |||||
2024-11-27 | netwatch-dns: explicitly expect type=A...routeros-7.16-7 | 2 | -3/+3 | ||
... which is provided since 7.16beta7 (but require next stable release 7.16 as that is available meanwhile). | |||||
2024-11-27 | dhcp-to-dns: explicitly expect type=A...routeros-7.16-6 | 2 | -5/+5 | ||
... 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 779b3b8872b23b784c331d7a454c86439046f5d3. | |||||
2024-11-27 | mod/ssh-keys-import: require RouterOS 7.16routeros-7.16-5 | 2 | -2/+2 | ||
Actually the requirement bumped with the change in commits: * 9c945b1a3283bb352707c69630c579cf82484dcb mod/ssh-keys-import: $SSHKeysImportFile: simplify looping lines * 1f526b356121749991fee69cee5a6c728855c8f2 mod/ssh-keys-import: $SSHKeysImport: split with `:deserialize` | |||||
2024-11-27 | fw-addr-lists: require RouterOS 7.16routeros-7.16-4 | 2 | -2/+2 | ||
Actually the requirement bumped with the change in commit: * 084c246ef0cab329fe981732089277fa8398800b fw-addr-lists: simplify looping lines | |||||
2024-11-22 | fw-addr-lists: spamhaus.org returned to 'GTS Root R4' | 2 | -3/+3 | ||
2024-11-15 | mode-button: do not act on disabled LED | 1 | -1/+2 | ||
2024-11-15 | mode-button: catch runtime errors in executed code | 1 | -1/+5 | ||
2024-11-15 | mode-button: fix the caller parameter to $LogPrint | 1 | -3/+3 | ||
This is inside a function, so use just $0 here. | |||||
2024-11-14 | packages-update: drop check for device-mode downgrade...routeros-7.17beta5-1 | 1 | -6/+0 | ||
... as things have been revised and this specific setting was removed. | |||||
2024-11-13 | hotspot-to-wpa-cleanup: revert display of timeout value... | 3 | -3/+3 | ||
... as the timeout is a time value, and showing "4w00:00:00" (with lots of zeros) is not any better. 😜 This reverts commit f1533b8962bc67d17e9f6b5666ae51ee4d1e1ff4. | |||||
2024-11-13 | hotspot-to-wpa-cleanup: prepare real timeout value in variable... | 3 | -6/+6 | ||
... to make sure it is not re-calculated for every single lease. | |||||
2024-11-12 | hotspot-to-wpa-cleanup: clean up daily only | 3 | -3/+6 | ||
2024-11-12 | hotspot-to-wpa-cleanup: use the timeout in message... | 3 | -3/+3 | ||
... not the actual value. | |||||
2024-11-12 | check-routeros-update: always exit early if up to date... | 1 | -2/+4 | ||
... and just make the output and log dependent on terminal. | |||||
2024-11-12 | check-routeros-update: make invalid version string a warning | 1 | -1/+1 | ||
2024-11-12 | check-routeros-update: add specific message for empty version string | 1 | -0/+5 | ||
2024-11-12 | check-routeros-update: replace hard-coded version | 1 | -1/+1 | ||
2024-11-08 | mod/ssh-keys-import: $SSHKeysImport: split with `:deserialize`routeros-7.16-3 | 1 | -2/+1 | ||
2024-11-08 | mod/ssh-keys-import: $SSHKeysImportFile: let `:deserialize` split the fields | 1 | -6/+3 | ||
2024-11-08 | mod/ssh-keys-import: $SSHKeysImportFile: simplify looping linesrouteros-7.16-2 | 1 | -5/+4 | ||
2024-11-06 | fw-addr-lists: simplify looping linesrouteros-7.16-1 | 1 | -4/+3 | ||
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-02 | doc/netwatch-dns: link to 'certificate name from browser' | 2 | -2/+4 | ||