From 62350cc0d672a78ae1407afda6c874eb4f2b75af Mon Sep 17 00:00:00 2001 From: MarkusMcNugen Date: Sat, 3 Feb 2018 02:24:52 -0500 Subject: [PATCH] Update iptables.sh --- qbittorrent/iptables.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qbittorrent/iptables.sh b/qbittorrent/iptables.sh index bfc8e89..360f90b 100644 --- a/qbittorrent/iptables.sh +++ b/qbittorrent/iptables.sh @@ -4,6 +4,14 @@ # ip route ### +while true; do + if [ -c /dev/net/tun ]; + break + else + sleep 1 + fi +done + # split comma seperated string into list from LAN_NETWORK env variable IFS=',' read -ra lan_network_list <<< "${LAN_NETWORK}"