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:
parent
74d863263c
commit
876f7929f4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue