Age | Commit message (Expand) | Author | Files | Lines |
2021-11-03 | hotspot-to-wpa: drop support for tx limits•••... if you need to limit bandwidth use queues instead.
| Christian Hesse | 1 | -11/+2 |
2021-10-01 | global-functions: $NotificationFunctions->"email": check for valid settings•••No need to queue mails if 'address' and 'from' are not specified...
| Christian Hesse | 1 | -1/+2 |
2021-10-01 | global-functions: $DeviceInfo: do not fail on non-RouterBoard with ROS 7.x | Christian Hesse | 1 | -1/+4 |
2021-09-28 | global-functions.d/notification-telegram: fix calculation on cut off | Christian Hesse | 1 | -2/+3 |
2021-09-22 | doc/accesslist-duplicates: use real screenshot | Christian Hesse | 2 | -9/+2 |
2021-09-21 | README: add a note about date and time | Christian Hesse | 1 | -0/+4 |
2021-09-21 | README: use real screenshots...•••... and make sure copy-and-paste with code does not fail.
Also end all commands with a semicolon for Github copy button.
| Christian Hesse | 12 | -27/+41 |
2021-09-21 | hotspot-to-wpa-cleanup: match dhcp server name•••... as we do not want the hotspot's lease to become static.
| Christian Hesse | 1 | -3/+4 |
2021-09-21 | global-functions.d/inspectvar: add $InspectVar...•••to inspect variables. This is useful for variables with (nested) arrays,
for example inspecting $NetwatchNotify (from netwatch-notify):
[admin@Mikrotik] > $InspectVar $NetwatchNotify
-type-> array
-key-> quad-one
-type-> array
-key-> count
-type-> num
-value-> 0
-key-> notified
-type-> bool
-value-> false
-key-> parent
-type-> nothing
-key-> resolve-failed
-type-> nothing
-key-> since
-type-> nothing
-key-> example.com
-type-> array
-key-> count
-type-> num
-value-> 0
-key-> notified
-type-> bool
-value-> false
-key-> parent
-type-> str
-value-> quad-one
-key-> resolve-failed
-type-> nothing
-key-> since
-type-> nothing
change-64 | Christian Hesse | 5 | -3/+44 |
2021-09-21 | global-functions: notify about move of $IPCalc and $ScriptRunOnce to modules•••Just install with...
$ScriptInstallUpdate global-functions.d/ipcalc
... and/or...
$ScriptInstallUpdate global-functions.d/scriptrunonce
... and use the functions as before.
change-63 | Christian Hesse | 4 | -3/+4 |
2021-09-21 | global-functions: move $ScriptRunOnce to optional module | Christian Hesse | 3 | -41/+48 |
2021-09-21 | global-functions: move $IPCalc to optional module | Christian Hesse | 2 | -30/+35 |
2021-09-21 | upload-backup: warn on missing sensitive information with ROS 7.x | Christian Hesse | 1 | -0/+6 |
2021-09-21 | email-backup: warn on missing sensitive information with ROS 7.x | Christian Hesse | 1 | -0/+6 |
2021-09-21 | certs: drop old chain GTS CA 1O1 / GlobalSign | Christian Hesse | 1 | -186/+0 |
2021-09-20 | certs: add new chain GTS CA 1C3 / GTS Root R1•••This is used by Google DNS (8.8.8.8).
$CertificateAvailable "GTS CA 1C3"
/ip dns set use-doh-server=https://8.8.8.8/dns-query verify-doh-cert=yes
| Christian Hesse | 1 | -0/+242 |
2021-09-20 | certs: drop old intermediate cert DigiCert ECC Secure Server CA | Christian Hesse | 1 | -166/+0 |
2021-09-20 | certs: add new intermediate cert DigiCert TLS Hybrid ECC SHA384 2020 CA1•••This is used by Cloudflare DNS (1.1.1.1) and Quard9 (9.9.9.9).
$CertificateAvailable "DigiCert TLS Hybrid ECC SHA384 2020 CA1"
/ip dns set use-doh-server=https://1.1.1.1/dns-query verify-doh-cert=yes
$CertificateAvailable "DigiCert TLS Hybrid ECC SHA384 2020 CA1"
/ip dns set use-doh-server=https://9.9.9.9/dns-query verify-doh-cert=yes
| Christian Hesse | 1 | -0/+174 |
2021-09-08 | global-functions*: syntax for ROS 7.x•••Strings with escape sequence have to be enclosed in parentheses. Looks
like RouterOS 7.x is stricter here...
routeros-7.1rc3 | Christian Hesse | 3 | -8/+8 |
2021-09-02 | global-functions: $CertificateAvailable: drop version check | Christian Hesse | 1 | -5/+0 |
2021-09-01 | global-functions: $RequiredRouterOS: allow to use without warning | Christian Hesse | 1 | -6/+9 |
2021-08-31 | global-functions: $ScriptLock: handle array by index•••This should mitigate race conditions while rewriting the array.
| Christian Hesse | 1 | -17/+50 |
2021-08-31 | global-functions: $ScriptLock: do not store but calculate job count•••This should mitigate some more race conditions.
| Christian Hesse | 1 | -7/+10 |
2021-08-30 | lease-script: move debug output up | Christian Hesse | 1 | -3/+3 |
2021-08-27 | check-health: use $ScriptLock | Christian Hesse | 1 | -0/+3 |
2021-08-27 | netwatch-notify: use $ScriptLock | Christian Hesse | 1 | -0/+3 |
2021-08-26 | dhcp-to-dns: check for existence of address•••Chances are that $LeaseVal is an array with just an id - no idea why this
happens. So do not check for array but existence of address.
| Christian Hesse | 1 | -1/+3 |
2021-08-25 | global-functions.d/notification-telegram: for syntax for ROS 7.x•••Strings with escape sequence have to be enclosed in parentheses. Looks
like RouterOS 7.x is stricter here...
routeros-7.1rc1-1 | Christian Hesse | 1 | -1/+1 |
2021-08-16 | update list of contributors | Christian Hesse | 1 | -0/+1 |
2021-07-25 | global-functions: $ScriptLock: check for successful removal of ticket•••The script is already locked, so there is no second script to remove a
ticket at the same time. However a new script can add a new ticket and
overwrite the removal... Thus check for successful removal anyway.
| Christian Hesse | 1 | -5/+9 |
2021-07-15 | lease-script: drop differentiation of assign / deassign...•••... not that we have early locking.
| Christian Hesse | 9 | -15/+12 |
2021-07-15 | lease-script: use $ScriptLock•••There were still ways to produce errors from lease scripts...
Let's lock earlier, this should fix it.
| Christian Hesse | 1 | -7/+12 |
2021-07-15 | update list of contributors | Christian Hesse | 1 | -0/+1 |
2021-07-15 | global-functions: $ScriptLock: fix off-by-one check...•••... for stale job tickets
Signed-off-by: Christian Hesse <mail@eworm.de>
| Ben Harris | 1 | -1/+1 |
2021-07-11 | collect-wireless-mac: check for existence of mac address•••Chance are that $RegVal is an array with just an id - no idea why this
happens. So do not check for array but existence of mac address.
| Christian Hesse | 3 | -107/+119 |
2021-07-10 | global-functions: introduce $ScriptRunOncechange-62 | Christian Hesse | 4 | -3/+49 |
2021-07-09 | global-functions: $ScriptInstallUpdate: add error handling for changelog | Christian Hesse | 1 | -1/+5 |
2021-07-09 | global-functions.d/notification-telegram: subject in bold & underline•••This makes the subject visually delimited.
| Christian Hesse | 1 | -10/+11 |
2021-07-09 | finally remove old scriptschange-61 | Christian Hesse | 9 | -38/+5 |
2021-07-09 | global-functions: $ScriptInstallUpdate: add error handling for migration | Christian Hesse | 1 | -1/+5 |
2021-07-09 | global-functions: $ScriptInstallUpdate: drop unused variable•••This was a left-over from re-run message.
| Christian Hesse | 1 | -1/+0 |
2021-07-09 | global-functions: $ScriptInstallUpdate: drop the migration pattern | Christian Hesse | 1 | -1/+1 |
2021-07-09 | doc/netwatch-notify: hint on escaping, with example | Christian Hesse | 1 | -2/+2 |
2021-07-09 | netwatch-notify: implement pre-down hookchange-60 | Christian Hesse | 6 | -3/+11 |
2021-07-09 | collect-wireless-mac: remove 'unknown' from message and comment•••This was true, but the mac address is no longer unknown after it was
added to address list in comment.
| Christian Hesse | 3 | -3/+3 |
2021-07-09 | global-functions: $ScriptLock: drop variable, just return | Christian Hesse | 1 | -3/+2 |
2021-07-08 | global-functions: $ScriptLock: make ticket management more reliable | Christian Hesse | 1 | -10/+27 |
2021-07-08 | lease-script: add the order in log | Christian Hesse | 1 | -2/+2 |
2021-07-08 | lease-script: implement script order•••The order may be important: `collect-wireless-mac` can add a dns name
in notification, thus `dhcp-to-dns` should run first.
| Christian Hesse | 10 | -18/+27 |
2021-07-08 | lease-script: modify the tag | Christian Hesse | 9 | -10/+10 |
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 |