fix: nas auto shutdown

This commit is contained in:
Dominik Polakovics Polakovics 2026-04-16 09:08:39 +02:00
parent 28d00db42d
commit 8ceba4bcfd

View file

@ -39,7 +39,7 @@ let
# to a non-local peer means a download is in flight.
pyload_conns=$(${pkgs.iproute2}/bin/ss -H -t -n -p \
state established state syn-sent state syn-recv 2>/dev/null \
| grep -F '"pyload"' \
| grep -F 'pyload' \
| awk '{print $5}' \
| grep -Ev '${localPeerRegex}' || true)
if [[ -n "$pyload_conns" ]]; then