6in4: work around hanging wget process
SVN-Revision: 35408
This commit is contained in:
parent
ce8b226046
commit
a0a91963af
2 changed files with 5 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=6in4
|
PKG_NAME:=6in4
|
||||||
PKG_VERSION:=13
|
PKG_VERSION:=14
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
|
@ -65,8 +65,10 @@ proto_6in4_setup() {
|
||||||
local max=3
|
local max=3
|
||||||
|
|
||||||
while [ $((++try)) -le $max ]; do
|
while [ $((++try)) -le $max ]; do
|
||||||
wget -qO/dev/null "$url" 2>/dev/null && break
|
( wget -qO/dev/null "$url" 2>/dev/null ) &
|
||||||
sleep 1
|
local pid=$!
|
||||||
|
( sleep 5; kill $pid 2>/dev/null ) &
|
||||||
|
wait $pid && break
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue