Age | Commit message (Expand) | Author | Files | Lines |
2021-07-08 | netwatch-notify: run hook from a function | Christian Hesse | 1 | -23/+26 |
2021-07-08 | netwatch-notify: add error handling for hooks•••We already had syntax validation, but a script with valid synctax can
still fail to run...
| Christian Hesse | 1 | -2/+10 |
2021-07-07 | doc/lease-script: hint on script installation/execution order | Christian Hesse | 1 | -1/+6 |
2021-07-07 | doc/lease-script: fix link | Christian Hesse | 1 | -1/+1 |
2021-07-07 | collect-wireless-mac: use $EitherOr and simplify code | Christian Hesse | 3 | -12/+6 |
2021-07-07 | collect-wireless-mac: do not fail on missing dns record | Christian Hesse | 3 | -9/+12 |
2021-07-06 | collect-wireless-mac: rework, more use of arrays | Christian Hesse | 3 | -61/+50 |
2021-07-06 | ospf-to-leds: do not flood but log properly | Christian Hesse | 1 | -1/+2 |
2021-07-05 | doc/netwatch-notify: hint on checking specific isp | Christian Hesse | 1 | -0/+17 |
2021-07-01 | check-routeros-update: allow update for cap•••If CAPsMAN is running on a device with just 16MB flash downloading the
packages is not possible (or at least lost at reboot). So allow a CAP to
update with opt-in.
change-59 | Michael Gisbers | 6 | -4/+10 |
2021-07-01 | collect-wireless-mac: properly handle vanished device | Christian Hesse | 3 | -18/+45 |
2021-07-01 | dhcp-to-dns: fix static lease that lost bound status | Christian Hesse | 1 | -1/+4 |
2021-07-01 | dhcp-to-dns: properly handle vanished lease | Christian Hesse | 1 | -23/+31 |
2021-07-01 | lease-script: do not run too many instances of scripts•••Every instance of the scripts does all the work. If one script is running
and a second script is waiting we do not have to start a third one.
| Christian Hesse | 1 | -5/+7 |
2021-07-01 | lease-script: drop the delay magic...•••... as this should be handled by $ScriptLock in lease scripts now.
| Christian Hesse | 1 | -6/+0 |
2021-07-01 | hotspot-to-wpa-cleanup: lock script (and wait) | Christian Hesse | 1 | -0/+3 |
2021-07-01 | dhcp-to-dns: lock script (and wait) | Christian Hesse | 1 | -0/+3 |
2021-07-01 | collect-wireless-mac: wait when locking script | Christian Hesse | 3 | -3/+3 |
2021-07-01 | Merge branch 'ScriptLock' into next | Christian Hesse | 1 | -3/+58 |
2021-07-01 | global-functions: $ScriptLock: use hex string for ticket•••Does not matter what the ticket looks like, but using hex string it is
not converted to number.
| Christian Hesse | 1 | -2/+2 |
2021-07-01 | global-functions: $ScriptLock: use a limit on lock...•••... to make sure it does not lock forever.
| Christian Hesse | 1 | -4/+6 |
2021-06-30 | global-functions: $ScriptLock: allow to wait for lock | Christian Hesse | 1 | -0/+6 |
2021-06-30 | global-functions: $ScriptLock: rework with tickets•••Getting the order right is not easy... We use a global variable to store
"tickets" in an array. Based on that scripts know their order.
| Christian Hesse | 1 | -6/+40 |
2021-06-30 | global-functions: $ScriptLock: check if script is running | Christian Hesse | 1 | -0/+4 |
2021-06-30 | global-functions: $ScriptLock: check if script exists | Christian Hesse | 1 | -0/+4 |
2021-06-30 | global-functions: $ScriptLock: allow to return...•••... with true instead of breaking with error.
| Christian Hesse | 1 | -3/+8 |
2021-06-30 | global-functions: $LogPrintExit2: allow origin-specific debug•••Add something like this in global-config-overlay:
:global PrintDebugOverride {
"dhcp-to-dns"=true;
}
| Christian Hesse | 1 | -1/+6 |
2021-06-28 | global-functions: $GetRandomNumber: use $HexToNum | Christian Hesse | 1 | -11/+2 |
2021-06-28 | global-functions: $GetRandom20CharHex: do not remove otp...•••... as it is instantly invalid anyway.
| Christian Hesse | 1 | -3/+1 |
2021-06-25 | doc/notifications: change stroke color•••This makes the stroke visible on black background.
| Christian Hesse | 16 | -53/+48 |
2021-06-24 | lease-script: do not run in parallel on simultaneous deassign | Christian Hesse | 1 | -2/+5 |
2021-06-24 | global-functions: $RandomDelay: allow to specify unit in second argument | Christian Hesse | 1 | -1/+2 |
2021-06-23 | ppp-on-up: use $LogPrintExit2•••This will never print to terminal, nevertheless we want proper
log with script name in prefix.
| Christian Hesse | 1 | -3/+3 |
2021-06-23 | lease-script: use $LogPrintExit2•••This will never print to terminal, nevertheless we want proper
log with script name in prefix.
| Christian Hesse | 1 | -4/+4 |
2021-06-23 | ipv6-update: use $LogPrintExit2•••This will never print to terminal, nevertheless we want proper
log with script name in prefix.
| Christian Hesse | 1 | -4/+6 |
2021-06-23 | hotspot-to-wpa: add optional cleanup scriptchange-58 | Christian Hesse | 7 | -3/+72 |
2021-06-23 | celebrating the 1.000th commit - hooray!change-57 | Christian Hesse | 4 | -3/+4 |
2021-06-23 | notify about tag in scriptschange-56 | Christian Hesse | 4 | -3/+4 |
2021-06-23 | ppp-on-up: add error handling | Christian Hesse | 1 | -2/+6 |
2021-06-23 | ppp-on-up: use 'provides' to find ppp-on-up scripts | Christian Hesse | 2 | -9/+6 |
2021-06-23 | lease-script: add error handling | Christian Hesse | 1 | -2/+6 |
2021-06-23 | lease-script: use 'provides' to find lease scripts | Christian Hesse | 8 | -25/+22 |
2021-06-23 | packages-update: use 'provides' to find backup scripts | Christian Hesse | 4 | -1/+7 |
2021-06-23 | update list of contributors | Christian Hesse | 1 | -0/+1 |
2021-06-21 | global-functions: $MkDir: abuse smb share to create directory•••The smb feature is provided by system package... So we have it anyway.
It gives some benefits compared to abusing fetch:
* It is faster!
* No need to alter, enable and restore a service! (The share is created disabled.)
* Firewall rules can not break this.
* No temporary file is created.
* Less code!
Let's hope we do not introduce new breakage.
Closes #14
| Christian Hesse | 1 | -7/+5 |
2021-06-21 | doc/netwatch-notify: hint on checking internet connectivity | Christian Hesse | 1 | -0/+14 |
2021-06-21 | doc: add sample notifications | Christian Hesse | 27 | -0/+3052 |
2021-06-18 | doc/check-health: no capital character here | Christian Hesse | 1 | -1/+1 |
2021-06-18 | Makefile: generate html files for documentation | Christian Hesse | 1 | -2/+2 |
2021-06-17 | email-backup: remove attachment when sent | Christian Hesse | 1 | -1/+1 |
2021-06-17 | global-functions: $NotificationFunctions->"email": support removing attachment | Christian Hesse | 1 | -2/+8 |
2021-06-16 | upload-backup: remove file after upload | Christian Hesse | 1 | -0/+4 |
2021-06-16 | global-functions: $HexToNum: properly handle capital characters | Christian Hesse | 1 | -2/+2 |
2021-06-15 | log-forward: use $HexToNum, do not resend old messages•••Now we know the order of messages and can compare. Changing the filter
does no longer result in old messages being resent.
| Christian Hesse | 1 | -6/+3 |
2021-06-15 | global-functions: introduce $HexToNum | Christian Hesse | 1 | -0/+16 |
2021-06-10 | global-functions: $SendEMail2: fix name in array•••This did not send anything at all...
Fixes #12
| Christian Hesse | 1 | -1/+1 |
2021-06-09 | log-forward: implement reverse logic to include messages...•••... even if a filter matches to exclude them. Let's have an example:
:global LogForwardFilter "(debug|info)";
:global LogForwardInclude "account";
This will forward everything about topic *account* (login, logout,
failed login, ...) - even with topic *info*.
change-55 | Christian Hesse | 6 | -7/+20 |
2021-06-09 | log-forward: update comments in global-config | Christian Hesse | 1 | -3/+4 |
2021-06-09 | doc/log-forward: mention Matrix | Christian Hesse | 1 | -1/+1 |
2021-06-08 | global-functions: make Telegram notifications a modulechange-54 | Christian Hesse | 5 | -160/+169 |
2021-06-08 | global-functions: implement notifications via Matrix•••Matrix is an open network for secure, decentralized communication - and
it has a web api.
A warning on message type: Using 'm.notice' breaks rendering on Element
for Android (no fixed width font) and does not pop up desktop
notification. Thus we use 'm.text'. Should be safe as we do not send the
messages in response to other messages.
https://matrix.org/
change-53 | Michael Gisbers | 15 | -18/+186 |
2021-06-08 | global-functions: make notification functions extensible•••This allows to add notification functions without overloading functions.
Just add it into the array:
:set ($NotificationFunctions->"fancy-messager") do={
# notification magic here...
}
Adding functions $SendFancyMessager and/or $SendFancyMessager2 may be
useful. Optionally a function to flush a queue may be required.
A BIG FAT WARNING about function parameters:
Calling a function from array results in $0 for the function name being
skipped. That's why we have to add the function name manually!
| Christian Hesse | 1 | -133/+159 |
2021-06-08 | global-functions: $ScriptInstallUpdate: drop the re-run message•••This makes sense just rarely... For important changes we have the
migration mechanism. So just drop this.
| Christian Hesse | 1 | -5/+0 |
2021-06-08 | global-functions: $ScriptInstallUpdate: reload configuration later | Christian Hesse | 1 | -7/+12 |
2021-06-08 | global-functions: $ScriptInstallUpdate: reload functions just once | Christian Hesse | 1 | -6/+11 |
2021-06-08 | global-functions: support loading modules•••If script's name starts with "global-functions.d/" it is handled
as module:
* loaded at startup
* triggers reload on update
| Christian Hesse | 1 | -1/+6 |
2021-06-08 | INITIAL-COMMANDS: make github copy function work•••The Github copy function skips all line breaks, so add some extra
semicolons to fix syntax.
| Christian Hesse | 1 | -3/+3 |
2021-06-06 | update list of contributors | Christian Hesse | 1 | -0/+1 |
2021-05-26 | Makefile: remove extra whitespace | Christian Hesse | 1 | -1/+1 |
2021-05-24 | ipv6-update: apply a mask on prefix•••Fixes #11
| Christian Hesse | 1 | -1/+1 |
2021-05-21 | check-certificates: fix variable name | Christian Hesse | 1 | -1/+1 |
2021-05-19 | global-functions: $DownloadPackage: quote package name | Christian Hesse | 1 | -2/+2 |
2021-05-18 | netwatch-notify: add info on hook in notification | Christian Hesse | 1 | -8/+12 |
2021-05-18 | Merge branch 'lets-encrypt-ISRG-X1' into next | Christian Hesse | 7 | -94/+10 |
2021-05-18 | update Let's Encrypt trust chain•••Drop 'DST Root CA X3', use 'ISRG Root X1' instead. The migration code
makes sure that...
* the intermediate certificate 'R3' is signed by 'ISRG Root X1'
* 'ISRG Root X1' is self-signed, not cross-signed by 'DST Root CA X3'
* 'DST Root CA X3' is finally gone
change-52 | Christian Hesse | 4 | -3/+5 |
2021-05-18 | drop certificate DST Root CA X3•••Let's Encrypt planned the transition to ISRG's root certificate ("ISRG Root
X1") on July 8, 2019, but postponed several times.
Finally they found another solution: A certificate 'ISRG Root X1', but
cross-signed with 'DST Root CA X3' and with a livetime that exceeds that
of the root CA. This is said to work for most operating system where root
certificate authorities are just 'trust anchors'.
I doubt this is true for RouterOS, where certificates are just imported
into the certificate store. So let's migrate to 'ISRG Root X1' now.
| Christian Hesse | 3 | -91/+5 |
2021-05-17 | add 'ipsec-to-dns'change-51 | Christian Hesse | 8 | -3/+120 |
2021-05-17 | dhcp-to-dns: use $0 in strings | Christian Hesse | 1 | -2/+2 |
2021-05-17 | dhcp-to-dns: put string into variable | Christian Hesse | 1 | -4/+5 |
2021-05-07 | README: use svg logo | Christian Hesse | 1 | -1/+1 |
2021-05-07 | logo: clean png export | Christian Hesse | 1 | -0/+0 |
2021-05-07 | logo: convert text to path | Christian Hesse | 1 | -24/+35 |
2021-05-07 | logo: scale to 96x96 pixels | Christian Hesse | 1 | -18/+22 |
2021-05-06 | Merge branch 'netwatch-notify' into next | Christian Hesse | 6 | -5/+50 |
2021-05-06 | netwatch-notify: log failed resolve just once | Christian Hesse | 1 | -2/+7 |
2021-05-06 | netwatch-notify: attempt to update address with working resolver only | Christian Hesse | 1 | -1/+2 |
2021-05-06 | netwatch-notify: support dynamic address updatechange-50 | Christian Hesse | 6 | -3/+28 |
2021-05-06 | netwatch-notify: log on host up...•••... if logged on host down before.
| Christian Hesse | 1 | -2/+4 |
2021-05-05 | doc/netwatch-notify: tips & tricks: one of several hosts | Christian Hesse | 1 | -0/+12 |
2021-05-03 | doc: inform about dependency on base installation•••That should make the documentation clearer if external sites link to the
documentation of a specific script.
| Christian Hesse | 31 | -0/+93 |
2021-05-03 | update list of contributors | Christian Hesse | 1 | -0/+1 |
2021-04-29 | upload-backup: add second symbol | Christian Hesse | 2 | -1/+2 |
2021-04-29 | email-backup: add second symbol | Christian Hesse | 1 | -1/+2 |
2021-04-29 | cloud-backup: add second symbol | Christian Hesse | 2 | -1/+2 |
2021-04-29 | email-backup: add symbol in e-mail•••That's easy now that we use $SendEMail2...
| Christian Hesse | 1 | -1/+2 |
2021-04-29 | email-backup: use $SendEMail2•••This drops $EmailBackupTo & $EmailBackupCc from settings! Use settings
overwrite if required:
:global EmailGeneralToOverride {
"email-backup"="backup@example.com";
}
change-49 | Christian Hesse | 6 | -23/+15 |
2021-04-29 | global-functions: $SendEMail2: support file attachments | Christian Hesse | 1 | -3/+5 |
2021-04-29 | email-backup: work inside directory | Christian Hesse | 1 | -6/+12 |
2021-04-29 | upload-backup: work inside directory | Christian Hesse | 1 | -6/+12 |
2021-04-29 | capsman-rolling-upgrade: properly handle vanished cap | Christian Hesse | 1 | -2/+6 |