From b0864f3a7d9d165018b5f658414d7a66085dd0fc Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Tue, 24 Jan 2006 06:11:55 +0000 Subject: [PATCH] Give the TIMEOUT case a chance to work by using -t # instead of the OpenBSD -w # when invoking ping. PR: bin/92187 Submitted by: "Shin'ya Kumabuchi" MFC After: 6 days --- sbin/dhclient/dhclient-script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/dhclient/dhclient-script b/sbin/dhclient/dhclient-script index 9ba598c08188..da2a99be430c 100644 --- a/sbin/dhclient/dhclient-script +++ b/sbin/dhclient/dhclient-script @@ -276,7 +276,7 @@ TIMEOUT) if [ -n "$new_routers" ]; then $LOGGER "New Routers ($interface): $new_routers" set "$new_routers" - if ping -q -c 1 -w 1 "$1"; then + if ping -q -c 1 -t 1 "$1"; then if [ "$new_ip_address" != "$alias_ip_address" ]; then add_new_alias fi