mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Check if ping result is not empty in OMR-Tracker server
This commit is contained in:
parent
ac6fb86290
commit
b54fab6077
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ _ping_server_intf() {
|
|||
-I "$intf" \
|
||||
"${host}" 2>&1
|
||||
)
|
||||
echo "$ret" | grep -sq " 0% packet loss" && {
|
||||
[ -n "$ret" ] && echo "$ret" | grep -sq " 0% packet loss" && {
|
||||
server_ping=true
|
||||
}
|
||||
k=$((k+1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue