mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 02:51:50 +00:00
Update to iputils-ping
This commit is contained in:
parent
e084e0920c
commit
5cd9511df6
2 changed files with 5 additions and 4 deletions
|
@ -79,11 +79,11 @@ _ping() {
|
|||
local host=$1
|
||||
local deviceip=$2
|
||||
local localip=$3
|
||||
ret=$(ping "${host}" \
|
||||
-I "${deviceip}" \
|
||||
-W "$OMR_TRACKER_TIMEOUT" \
|
||||
ret=$(ping -I "${deviceip}" \
|
||||
-w "$OMR_TRACKER_TIMEOUT" \
|
||||
-c 1 \
|
||||
-q
|
||||
-q \
|
||||
"${host}"
|
||||
) && echo "$ret" | grep -sq "0% packet loss" && {
|
||||
if [ "$localip" = "yes" ]; then
|
||||
OMR_TRACKER_LATENCY=$(echo "$ret" | cut -d "/" -s -f4 | cut -d "." -f1)
|
||||
|
|
|
@ -41,6 +41,7 @@ MY_DEPENDS := \
|
|||
iftop \
|
||||
tcpdump \
|
||||
ethtool \
|
||||
iputils-ping \
|
||||
tracebox \
|
||||
luci-proto-3g \
|
||||
comgt-ncm luci-proto-ncm \
|
||||
|
|
Loading…
Reference in a new issue