fix: nas auto shutdown
This commit is contained in:
parent
28d00db42d
commit
8ceba4bcfd
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ let
|
||||||
# to a non-local peer means a download is in flight.
|
# to a non-local peer means a download is in flight.
|
||||||
pyload_conns=$(${pkgs.iproute2}/bin/ss -H -t -n -p \
|
pyload_conns=$(${pkgs.iproute2}/bin/ss -H -t -n -p \
|
||||||
state established state syn-sent state syn-recv 2>/dev/null \
|
state established state syn-sent state syn-recv 2>/dev/null \
|
||||||
| grep -F '"pyload"' \
|
| grep -F 'pyload' \
|
||||||
| awk '{print $5}' \
|
| awk '{print $5}' \
|
||||||
| grep -Ev '${localPeerRegex}' || true)
|
| grep -Ev '${localPeerRegex}' || true)
|
||||||
if [[ -n "$pyload_conns" ]]; then
|
if [[ -n "$pyload_conns" ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue