diff options
author | Steven Barth <cyrus@openwrt.org> | 2013-01-30 09:05:53 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2013-01-30 09:05:53 +0000 |
commit | a0a91963af6b96dc648ad4fe56ce4415ccb74cbd (patch) | |
tree | 93e1a553bb88dc2163217def5835742007373dfa /package/network/ipv6/6in4/files | |
parent | ce8b22604623f44b85c8335627accbb5e40145b5 (diff) | |
download | upstream-a0a91963af6b96dc648ad4fe56ce4415ccb74cbd.tar.gz upstream-a0a91963af6b96dc648ad4fe56ce4415ccb74cbd.tar.bz2 upstream-a0a91963af6b96dc648ad4fe56ce4415ccb74cbd.zip |
6in4: work around hanging wget process
SVN-Revision: 35408
Diffstat (limited to 'package/network/ipv6/6in4/files')
-rwxr-xr-x | package/network/ipv6/6in4/files/6in4.sh | 6 |
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 ef25322346..e27e86ef08 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 } } |