diff options
author | sam <sam@FreeBSD.org> | 2009-01-26 23:05:50 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-01-26 23:05:50 +0000 |
commit | 944852071ab14fddecc202370d34f66e44eebdce (patch) | |
tree | b2ed11eab43fabc8907881f01c4a98b01bc563a8 /etc/devd.conf | |
parent | fee43044fc8227d0cdf4dced8e0c77a783eca94e (diff) | |
download | FreeBSD-src-944852071ab14fddecc202370d34f66e44eebdce.zip FreeBSD-src-944852071ab14fddecc202370d34f66e44eebdce.tar.gz |
Remove DETACH event handling; this is race prone and does nothing useful.
Leave a comment for the next person that thinks they need to be helpful.
Reviewed by: imp, jhb
MFC after: 2 weeks
Diffstat (limited to 'etc/devd.conf')
-rw-r--r-- | etc/devd.conf | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/etc/devd.conf b/etc/devd.conf index 8dbf34b..f4f04ad 100644 --- a/etc/devd.conf +++ b/etc/devd.conf @@ -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 |