diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2006-01-24 06:11:55 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2006-01-24 06:11:55 +0000 |
commit | b0864f3a7d9d165018b5f658414d7a66085dd0fc (patch) | |
tree | bd420a96ce1e4b2df1fd90c2c96daf999a2f1362 /sbin/dhclient | |
parent | e6bdc05ff762c228a738808acfc7f12f0e8c4b74 (diff) | |
download | src-b0864f3a7d9d165018b5f658414d7a66085dd0fc.tar.gz src-b0864f3a7d9d165018b5f658414d7a66085dd0fc.zip |
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" <kumabu at t3 dot rim dot or dot jp>
MFC After: 6 days
Notes
Notes:
svn path=/head/; revision=154760
Diffstat (limited to 'sbin/dhclient')
-rw-r--r-- | sbin/dhclient/dhclient-script | 2 |
1 files changed, 1 insertions, 1 deletions
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 |