svn commit: r187744 - projects/vap7/etc

Sam Leffler sam at FreeBSD.org
Mon Jan 26 15:15:20 PST 2009


Author: sam
Date: Mon Jan 26 23:15:19 2009
New Revision: 187744
URL: http://svn.freebsd.org/changeset/base/187744

Log:
  merge r187743: ignore DETACH events

Modified:
  projects/vap7/etc/   (props changed)
  projects/vap7/etc/devd.conf

Modified: projects/vap7/etc/devd.conf
==============================================================================
--- projects/vap7/etc/devd.conf	Mon Jan 26 23:05:50 2009	(r187743)
+++ projects/vap7/etc/devd.conf	Mon Jan 26 23:15:19 2009	(r187744)
@@ -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


More information about the svn-src-projects mailing list