[svn-r6529] Purpose:

Improvement

Description:
Added a 5 seconds timeout to the PING command so that it can detect
host not online quicker.

Platforms tested:
The three platforms tests do not cover this command.
Test it in eirene where it is usually run.

Misc. update:
This commit is contained in:
Albert Cheng 2003-03-29 12:36:35 -05:00
parent fc295015d8
commit 9dedbf110e

View File

@ -156,8 +156,8 @@ CHECK_RSH()
# Test "ping -c ..." style first because some '-c' machines treat
# the command 'ping localhost 3' means to ping host '3'.
if [ -z "$PING" ]; then
if ping -c 3 localhost >/dev/null 2>&1; then
PING='ping -c 3'
if ping -c 3 -w 5 localhost >/dev/null 2>&1; then
PING='ping -c 3 -w 5'
PINGCOUNT=
elif ping localhost 3 >/dev/null 2>&1; then
PING=ping