Skip to content

Commit

Permalink
Solve issue with not waiting long enough on for nordvpn.sock
Browse files Browse the repository at this point in the history
  • Loading branch information
veqryn committed Apr 30, 2023
1 parent 56a9cda commit 2729687
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rootfs/usr/bin/nord_login
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ if ! iptables -L > /dev/null 2>&1; then
sleep 3600
done
fi
sleep 5

while [ ! -S /run/nordvpn/nordvpnd.sock ] ; do
sleep 1
done

[[ -z "${PASS}" ]] && [[ -f "${PASSFILE}" ]] && PASS="$(head -n 1 "${PASSFILE}")"
nordvpn logout --persist-token > /dev/null
Expand Down

0 comments on commit 2729687

Please sign in to comment.