Merge "Change ping wait flag"

This commit is contained in:
Jenkins 2016-05-19 08:48:57 +00:00 committed by Gerrit Code Review
commit 5a3fc23806
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ function ping_retry() {
PING_CMD=ping6
fi
until [ $COUNT -ge $TIMES ]; do
if $PING_CMD -W 300 -c 1 $IP_ADDR &> /dev/null; then
if $PING_CMD -w 300 -c 1 $IP_ADDR &> /dev/null; then
echo "Ping to $IP_ADDR succeeded."
return 0
fi