Update iptables.sh

This commit is contained in:
MarkusMcNugen
2018-02-03 06:36:03 -05:00
committed by GitHub
parent cdc7fefb16
commit c25f20fc69

View File

@@ -3,7 +3,8 @@
# Wait until tunnel is up # Wait until tunnel is up
while : ; do while : ; do
if [ -c /dev/net/tun ]; then tunnelstat=$(netstat -ie | grep -E "tun|tap")
if [[ ! -z "${tunnelstat}" ]]; then
break break
else else
sleep 1 sleep 1