diff options
author | egon_ffj <egon@freifunk-jena.de> | 2011-06-20 05:52:52 (GMT) |
---|---|---|
committer | egon_ffj <egon@freifunk-jena.de> | 2011-06-20 05:52:52 (GMT) |
commit | cccaebd600669e72a7215955985597b7d2b3a38a (patch) | |
tree | 712362a11901a8d0c0e8ea2ea432680c8a5f777b | |
parent | 12cf346ffecdf98145f6a09e3c49f40cb578ddac (diff) |
* send 3 instead of only 1 ping packet because n2n usually kills the first ping packet
-rwxr-xr-x | files/sbin/setup_router | 2 |
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 |