net/mwan3: add ping size option to mwan3track

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert
2017-03-15 14:14:35 +01:00
parent 3231736cab
commit 6d44a7679a
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
#!/bin/sh
[ -z "$9" ] && echo "Error: should not be started manually" && exit 0
[ -z "$10" ] && echo "Error: should not be started manually" && exit 0
if [ -e /var/run/mwan3track-$1.pid ] ; then
kill $(cat /var/run/mwan3track-$1.pid) &> /dev/null
@@ -17,7 +17,7 @@ lost=0
while true; do
for track_ip in $track_ips; do
ping -I $2 -c $4 -W $5 -q $track_ip &> /dev/null
ping -I $2 -c $4 -W $5 -s $9 -q $track_ip &> /dev/null
if [ $? -eq 0 ]; then
let host_up_count++
else