broken dhclient-script in TIMEOUT case

David Xu davidxu at freebsd.org
Fri Sep 23 21:55:46 PDT 2005


Sorry, here is the patch:

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



More information about the freebsd-current mailing list