Christian Hesse
458fd1fdcd
netwatch-dns: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
400516295e
mode-button: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
50e1c45880
log-forward: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
49650d8b14
lease-script: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
d6ea66ccd3
ipv6-update: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
85dbe3a868
ipsec-to-dns: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
a36ec397d6
hotspot-to-wpa: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
2bf02cf085
hotspot-to-wpa-cleanup: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
a0fc6c30ef
gps-track: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
480ad0c196
fw-addr-lists: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
cf986caf8d
firmware-upgrade-reboot: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
29f544d18d
dhcp-to-dns: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
82ec11f2fc
dhcp-lease-comment: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
31da6b8bd5
daily-psk: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
e2b87c8634
collect-wireless-mac: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
22eb74cb3a
check-routeros-update: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
450ea2fa48
check-lte-firmware-upgrade: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
80180b432d
check-health: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
fc3fad5e87
check-certificates: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
2d112c0b33
certificate-renew-issued: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
4cbf9fab74
capsman-rolling-upgrade: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
c2df671d6f
capsman-download-packages: move code into function
2024-03-04 17:04:45 +01:00
Christian Hesse
1c26dde356
backup-upload: move code into function
2024-03-04 16:34:01 +01:00
Christian Hesse
0ded98c9e2
backup-partition: move code into function
2024-03-04 16:33:57 +01:00
Christian Hesse
19fb7b61ea
backup-email: move code into function
2024-03-04 16:33:54 +01:00
Christian Hesse
33d129496c
backup-cloud: move code into function
2024-03-04 16:33:51 +01:00
Christian Hesse
efc2e75f01
accesslist-duplicates: move code into function
2024-03-04 16:33:45 +01:00
Christian Hesse
64aa6ef124
netwatch-notify: check one after another
...
This can bring an extra delay, but saves a check in most cases.
2024-03-03 20:32:23 +01:00
Christian Hesse
4869d74edf
netwatch-notify: handle IPv6 / AAAA resolving
2024-03-02 22:08:40 +01:00
Christian Hesse
50a6914907
netwatch-notify: (mis-)use firewall address-list for lookup...
...
... and drop the racy code querying dns cache. 😁
2024-03-01 12:30:18 +01:00
Christian Hesse
20d1ad17d7
Merge branch 'fw-addr-lists' into next
2024-02-29 14:22:07 +01:00
Christian Hesse
62790ae091
fw-addr-lists: add support for IPv6
2024-02-29 14:21:58 +01:00
Christian Hesse
0125f102b4
fw-addr-lists: rename variable
2024-02-29 14:21:58 +01:00
Christian Hesse
31966479dc
fw-addr-lists: update wording
2024-02-29 14:21:58 +01:00
Christian Hesse
1687e2780f
fw-addr-lists: get timeout from loop
2024-02-29 14:21:58 +01:00
Christian Hesse
b9e0ffac1d
Merge branch 'netwatch-notify' into next
2024-02-29 14:21:46 +01:00
Christian Hesse
a924de274c
netwatch-notify: handle CNAME to multiple records
2024-02-28 23:01:43 +01:00
Christian Hesse
6f29c640e4
netwatch-notify: move check in DNS cache to local function
2024-02-28 23:01:43 +01:00
Christian Hesse
01d2c3ea7e
netwatch-notify: try another workaround
...
The last one did not make it... Perhaps the cache just needs
a moment to settle?
2024-02-28 23:01:43 +01:00
Christian Hesse
93bed1b081
netwatch-notify: work around race condition
...
This used to crash every now and then with:
> script;error script error: no such item (4)
I guess this is caused by querying the dns cache just exactly when a
record expires. The chance is maximized: The script is started by
scheduler every minute, and the record's ttl is a multiple of a minute.
Let's query records that are not about to expire immediately, and
try again.
2024-02-28 23:01:43 +01:00
Christian Hesse
c2f5272f18
netwatch-notify: restore the check 🥴
...
This reverts commit 28da1da49e
.
Chances are that we have to resolve a CNAME, that does not match when
querying the cache.
How to handle CNAME do multiple A records? 🤨
2024-02-28 23:01:43 +01:00
Christian Hesse
45875ad68e
netwatch-notify: simplify the check
2024-02-28 23:01:43 +01:00
Christian Hesse
b1199ca50a
netwatch-notify: ... and switch state to "unknown" on host update
2024-02-28 23:01:43 +01:00
Christian Hesse
1344694708
netwatch-notify: handle status "down" in its own condition...
...
... instead of else-branch.
This makes sure to skip hosts that just became "unknown".
(Possible soon!)
2024-02-28 23:01:43 +01:00
Christian Hesse
1c2048628d
netwatch-notify: use logical operator, no literal "and"
...
Just like we do everywhere else.
2024-02-28 23:01:43 +01:00
Christian Hesse
471e0ead05
doc/netwatch-notify: update for multiple records
2024-02-28 23:01:00 +01:00
Christian Hesse
b286cb6803
netwatch-notify: do not update with record in cache
...
Using `:resolve` we have just one address, but chances are several
records do exist. These end up in cache, so we are happy to find them
there - no need to update then.
2024-02-19 11:03:17 +01:00
Christian Hesse
872abbea7d
doc/unattended-lte-firmware-upgrade: more devices supported...
2024-02-08 21:02:06 +01:00
Christian Hesse
860acffbdb
unattended-lte-firmware-upgrade: add error handling
2024-02-08 21:02:06 +01:00
Christian Hesse
e83154c9c3
check-lte-firmware-upgrade: give more detailed infos on modem
2024-02-08 20:54:02 +01:00