Re: broken dhclient-script in TIMEOUT case

From: David Xu <davidxu_at_freebsd.org>
Date: Sat, 24 Sep 2005 12:55:39 +0800
Sorry, here is the patch:

--- dhclient-script    Sat Sep 10 10:53:31 2005
+++ /sbin/dhclient-script    Sat Sep 24 12:40:38 2005
_at__at_ -272,7 +272,7 _at__at_
     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
_at__at_ -282,7 +282,6 _at__at_
             fi
         fi
     fi
-    eval "ifconfig $interface inet -alias $new_ip_address $medium"
     delete_old_routes
     exit_with_hooks 1
     ;;
Received on Sat Sep 24 2005 - 02:55:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:44 UTC