mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
net/mwan3: add ping size option to mwan3track
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user