summaryrefslogtreecommitdiffstats
path: root/package/network/ipv6/6in4/files/6in4.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/ipv6/6in4/files/6in4.sh')
-rwxr-xr-xpackage/network/ipv6/6in4/files/6in4.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/network/ipv6/6in4/files/6in4.sh b/package/network/ipv6/6in4/files/6in4.sh
index ef2532234..e27e86ef0 100755
--- a/package/network/ipv6/6in4/files/6in4.sh
+++ b/package/network/ipv6/6in4/files/6in4.sh
@@ -65,8 +65,10 @@ proto_6in4_setup() {
local max=3
while [ $((++try)) -le $max ]; do
- wget -qO/dev/null "$url" 2>/dev/null && break
- sleep 1
+ ( wget -qO/dev/null "$url" 2>/dev/null ) &
+ local pid=$!
+ ( sleep 5; kill $pid 2>/dev/null ) &
+ wait $pid && break
done
}
}