Lines 70-78
Link Here
|
70 |
for ip in ${netwait_ip}; do |
70 |
for ip in ${netwait_ip}; do |
71 |
echo -n "Waiting for ${ip} to respond to ICMP" |
71 |
echo -n "Waiting for ${ip} to respond to ICMP" |
72 |
|
72 |
|
|
|
73 |
case "$ip" in |
74 |
*:*) |
75 |
PING="/sbin/ping6 -c 1 -o" |
76 |
;; |
77 |
*) |
78 |
PING="/sbin/ping -t 1 -c 1 -o" |
79 |
esac |
73 |
count=1 |
80 |
count=1 |
74 |
while [ ${count} -le ${netwait_timeout} ]; do |
81 |
while [ ${count} -le ${netwait_timeout} ]; do |
75 |
/sbin/ping -t 1 -c 1 -o ${ip} >/dev/null 2>&1 |
82 |
$PING ${ip} >/dev/null 2>&1 |
76 |
rc=$? |
83 |
rc=$? |
77 |
|
84 |
|
78 |
if [ $rc -eq 0 ]; then |
85 |
if [ $rc -eq 0 ]; then |