From 3d0181db3fd950336f58085026d60398427fb8d2 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Thu, 8 Sep 2005 22:15:19 +0000 Subject: [PATCH] When we fail to aquire a lease, our lease expires without a sucessful renewal, or we lose link, be more forceful about clearing interface state so another interface that connects to the same network has a chance of working. This doesn't address attemping to connect to both at once, but appears to allow unplugging from a wired interface and then inserting a wireless card that associates with an AP bridged to the same LAN. --- sbin/dhclient/dhclient-script | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/dhclient/dhclient-script b/sbin/dhclient/dhclient-script index 8087fed5740f..75589d6f5cf9 100644 --- a/sbin/dhclient/dhclient-script +++ b/sbin/dhclient/dhclient-script @@ -247,6 +247,7 @@ EXPIRE|FAIL) delete_old_address delete_old_routes fi + ifconfig $interface delete # XXX Why add alias we just deleted above? add_new_alias if [ -f /etc/resolv.conf.save ]; then