projects
/
lede-git
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
6in4: fix typo in last commit
[lede-git/.git]
/
package
/
network
/
ipv6
/
6in4
/
files
/
6in4.sh
diff --git
a/package/network/ipv6/6in4/files/6in4.sh
b/package/network/ipv6/6in4/files/6in4.sh
index ef2532234619bb7664adde365394423a5aba8ea9..647a2f89cfdc573cdac77858812e05463429cf43 100755
(executable)
--- 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
+ ( exec wget -qO/dev/null "$url" 2>/dev/null ) &
+ local pid=$!
+ ( sleep 5; kill $pid 2>/dev/null ) &
+ wait $pid && break
done
}
}