Commit graph

473 commits

Author SHA1 Message Date
Christian Hesse 5741924cf9 global-functions: replace deprecated keep-result=no with output=none 2020-01-28 21:51:27 +01:00
Christian Hesse c7034ca5af check-health: never divide, always multiply
With RouterOS we have integral numbers only. This prevent from having
friction that is cut off.
2020-01-24 08:17:42 +01:00
Christian Hesse 6e5e0e72bd check-health: always calculate on the lower voltage value
This makes sure an alert is triggered in both directions. Before we could have:

24.0V to 21.8V -> OK
21.8V to 24.0V -> Alert!
2020-01-24 08:16:54 +01:00
Christian Hesse 958bfa7ce8 collect-wireless-mac: automatically add missing access-list entry 2020-01-17 10:36:03 +01:00
Christian Hesse 12da4de305 check-routeros-update: do not act if reboot is scheduled 2020-01-16 16:11:50 +01:00
Christian Hesse 08c90c95b7 mode-button-scheduler: give proper message if no action defined 2020-01-06 10:33:27 +01:00
Christian Hesse b3a76c7e4b global-functions: $CertificateDownload: properly name new certificates 2020-01-06 10:20:19 +01:00
Christian Hesse aa885e17e2 collect-wireless-mac: use dynamic & bound mac address only 2020-01-06 09:47:32 +01:00
Christian Hesse bb7c4ef0d9 dhcp-lease-comment: act on bound leases only 2020-01-06 09:42:00 +01:00
Christian Hesse 0560f828d1 dhcp-to-dns: act on bound leases only 2020-01-06 09:40:24 +01:00
Christian Hesse cf79e6c473 global-functions: do not encode dash, dot, slash and underscore 2020-01-03 11:24:12 +01:00
Christian Hesse b1b7ed83ed global-functions: $Certificate*: add quoting around CN 2020-01-03 10:15:34 +01:00
Christian Hesse cb1e520965 global-functions: split $CertificateAvailable to $CertificateDownload
This allows to force download even if certificate is available. We need
this for a clean update path with Let's Encrypt.
2020-01-03 10:07:55 +01:00
Christian Hesse afb9839073 update copyright for 2020 2020-01-01 17:00:39 +01:00
Christian Hesse f9c9d67cc9 packages-update: improve wording 2019-12-20 14:38:42 +01:00
Christian Hesse d064bd349e global-functions: define first, set later 2019-12-10 14:45:35 +01:00
Christian Hesse 64341690bf global-functions: $DownloadPackage: retry on error 2019-12-05 13:20:26 +01:00
Christian Hesse 7365bfa525 packages-update: lock against multiple invocation 2019-12-05 11:41:49 +01:00
Christian Hesse 3db466f476 capsman-rolling-upgrade: lock against multiple invocation 2019-12-05 11:41:49 +01:00
Christian Hesse b8db93918f capsman-download-packages: lock against multiple invocation 2019-12-05 11:41:49 +01:00
Christian Hesse 9548641b60 packages-update: skip the interactive part of non-terminal 2019-12-04 09:21:07 +01:00
Christian Hesse f26222d5a8 check-routeros-update: use $ScriptFromTerminal 2019-12-03 23:45:55 +01:00
Christian Hesse ebd5ff9bfe global-functions: introduce $ScriptFromTerminal
Checking whether or not started from terminal is tricky... We have to find
the job for the script, find its top most parent and get its type.
2019-12-03 23:45:55 +01:00
Christian Hesse bccdb47fde ipv6-update: calculate address with bitwise operator
Support for bitwise operator was added in RouterOS 6.46beta38.
2019-12-03 12:07:36 +01:00
Christian Hesse e37af0065c hotspot-to-wpa: get limits from place-before-entry 2019-12-03 11:41:18 +01:00
Christian Hesse ac6c132ea0 global-functions: $DeviceInfo: append revision to model 2019-11-28 10:49:21 +01:00
Christian Hesse a8a0523d33 collect-wireless-mac: add the dns name 2019-11-25 17:07:45 +01:00
Christian Hesse 15a6fb325e collect-wireless-mac: lease without address should be impossible...
... we need the check for empty hostname, though.
2019-11-25 16:43:19 +01:00
Christian Hesse b70d4f7666 collect-wireless-mac: move code into condition 2019-11-25 16:39:23 +01:00
Christian Hesse 73a3e58c8f {email,upload}-backup: update wording 2019-11-21 22:22:04 +01:00
Christian Hesse 845c25f87c dhcp-to-dns: act on hostname only if available 2019-11-14 22:16:33 +01:00
Christian Hesse 395bc8c90f dhcp-to-dns: set the temporary variable unconditionally 2019-11-12 13:02:40 +01:00
Christian Hesse 91776d3388 dhcp-to-dns: handle duplicate mac-address and host-name
* several leases for one mac address (changed client id, different net):
   -> take address from last lease
  Most likely this is the same devices which booted different OS or
  changed to different network.

* several leases for one host name:
   -> take address from first lease
  We see either different devices with same name or one device with
  several network interfaces. Keep the first name to mitigate stealing
  dns name.
2019-11-12 12:49:28 +01:00
Christian Hesse 9d5c566b1c check-certificates: make renew notification silent 2019-11-11 20:47:11 +01:00
Christian Hesse c93c6e1934 README: fix typo and wording 2019-11-05 00:28:30 +01:00
Christian Hesse 7c0c27c03f global-functions: add architecture in device info 2019-10-28 13:15:10 +01:00
Christian Hesse df0c2afa31 check-health: decrease default threshold for voltage 2019-10-22 15:03:52 +02:00
Christian Hesse 39815662f7 check-health: work with battery property
Seen on wAP R... No idea what this is.
2019-10-18 12:25:27 +02:00
Christian Hesse 9ce5d722b3 add script 'hotspot-to-wpa' 2019-10-14 21:24:35 +02:00
Christian Hesse f40bb2c8c8 check-health: make threshold for voltage configurable 2019-10-14 19:13:31 +02:00
Christian Hesse 09ce75c5b1 update list of contributors / donors
Thanks for the Mikrotik coffee mug!
2019-09-13 11:45:38 +02:00
Christian Hesse 1cee36a911 introduce global-config-overlay 2019-09-12 21:29:41 +02:00
Michael Gisbers 2258087aab global-functions: $DeviceInfo: handle configuration version 2019-09-12 21:29:41 +02:00
Christian Hesse 94581741f4 global-functions: introduce and use $DeviceInfo 2019-09-12 21:29:41 +02:00
Christian Hesse 23b38fa15a dhcp-to-dns: find duplicate leases by mac-address 2019-09-11 12:36:47 +02:00
Christian Hesse c7c5da2eca README: add just one scheduler for global scripts 2019-09-11 12:36:47 +02:00
Christian Hesse a7c498a90e update list of contributors / donors
Thanks a lot!
2019-09-11 12:36:47 +02:00
Christian Hesse c8d6c4597f packages-update: add random delay for scheduler 2019-09-11 12:36:24 +02:00
Christian Hesse ecc281446c packages-update: add option to schedule reboot 2019-09-02 09:39:19 +02:00
Christian Hesse 166bbffe1d script-updates: add donation hint in configuration warning notification 2019-08-30 14:10:58 +02:00