From ec9914788d65e9afdb45ed34d743b1a21ec73b20 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 25 Oct 2005 22:17:51 +0000 Subject: Do not call dhclient on detach events. Instead delete interface and flush arp table --- etc/devd.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc') diff --git a/etc/devd.conf b/etc/devd.conf index 49bcbb6..7246357 100644 --- a/etc/devd.conf +++ b/etc/devd.conf @@ -39,7 +39,7 @@ attach 0 { detach 0 { media-type "ethernet"; - action "/sbin/dhclient $device-name"; + action "/sbin/ifconfig $device-name delete && /usr/sbin/arp -da"; }; # @@ -62,7 +62,7 @@ notify 0 { # detach 0 { media-type "802.11"; - action "/sbin/dhclient $device-name"; + action "/sbin/ifconfig $device-name delete && /usr/sbin/arp -da"; }; attach 0 { media-type "802.11"; @@ -157,7 +157,7 @@ attach 10 { }; detach 10 { device-name "deqna[0-9]+"; - action "/sbin/dhclient $device-name"; + action "/sbin/ifconfig $device-name delete && /usr/sbin/arp -da"; }; # Examples of notify hooks. A notify is a generic way for a kernel -- cgit v1.1