summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoregon0 <ms@resonar.de>2011-06-20 05:52:52 (GMT)
committeregon0 <ms@resonar.de>2011-06-20 05:52:52 (GMT)
commit44ff24145f239468f20fc0475710bd9ca3fbfe02 (patch)
tree712362a11901a8d0c0e8ea2ea432680c8a5f777b
parent8cb323a46555cf6a35679eff9a81778275c7406a (diff)
* send 3 instead of only 1 ping packet because n2n usually kills the first ping packet
-rwxr-xr-xfiles/sbin/setup_router2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/sbin/setup_router b/files/sbin/setup_router
index b9a1b67..8bb9bde 100755
--- a/files/sbin/setup_router
+++ b/files/sbin/setup_router
@@ -11,7 +11,7 @@ if [[ $router = "j" ]]
/etc/init.d/n2n start
sleep 20
for i in `seq 1 254 `; do
- LOSS=`ping -c1 10.17.$i.1 | grep loss | awk '{print $7}' | sed 's/%//g'; sleep 1`
+ LOSS=`ping -c3 10.17.$i.1 | grep loss | awk '{print $7}' | sed 's/%//g'; sleep 1`
sleep 1;
if [[ 99 -lt $LOSS ]]; then
NODE_IP=10.17.$i.1
contact: Jan Huwald // Impressum