Use ping -n; if we're running a local nameserver, it may try to

reverse-resolve the IP address we're given, which will take a while
to time out, since we're still scanning cached leases (i.e. the network
isn't up yet).
This commit is contained in:
thorpej 1999-01-28 23:09:07 +00:00
parent 74d863263c
commit 876f7929f4
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ if [ x$reason = xTIMEOUT ]; then
sleep 1
if [ "$new_routers" != "" ]; then
set $new_routers
if ping -q -c 1 -w 1 $1; then
if ping -n -q -c 1 -w 1 $1; then
if [ x$new_ip_address != x$alias_ip_address ] && \
[ x$alias_ip_address != x ]; then
ifconfig $interface inet alias $alias_ip_address $alias_subnet_arg