Update iptables.sh

This commit is contained in:
MarkusMcNugen 2018-02-03 06:36:03 -05:00 committed by GitHub
parent cdc7fefb16
commit c25f20fc69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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