Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2009 23:17:19 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r187745 - user/sam/wifi/etc
Message-ID:  <200901262317.n0QNHJdW065988@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sam
Date: Mon Jan 26 23:17:19 2009
New Revision: 187745
URL: http://svn.freebsd.org/changeset/base/187745

Log:
  mfc r187743: ignore DETACH events

Modified:
  user/sam/wifi/etc/   (props changed)
  user/sam/wifi/etc/devd.conf

Modified: user/sam/wifi/etc/devd.conf
==============================================================================
--- user/sam/wifi/etc/devd.conf	Mon Jan 26 23:15:19 2009	(r187744)
+++ user/sam/wifi/etc/devd.conf	Mon Jan 26 23:17:19 2009	(r187745)
@@ -31,18 +31,17 @@ options {
 # Configure the interface on attach.  Due to a historical accident, this
 # script is called pccard_ether.
 #
+# NB: DETACH events are ignored; the kernel should handle all cleanup
+#     (routes, arp cache) if you need to do something beware of races
+#     against immediate create of a device w/ the same name; e.g.
+#	ifconfig bridge0 destroy; ifconfig bridge0 create
+#
 notify 0 {
 	match "system"		"IFNET";
 	match "type"		"ATTACH";
 	action "/etc/pccard_ether $subsystem start";
 };
 
-notify 0 {
-	match "system"		"IFNET";
-	match "type"		"DETACH";
-	action "/etc/pccard_ether $subsystem stop";
-};
-
 #
 # Try to start dhclient on Ethernet like interfaces when the link comes
 # up.  Only devices that are configured to support DHCP will actually



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901262317.n0QNHJdW065988>