USB2 patches
M. Warner Losh
imp at bsdimp.com
Sun Feb 1 10:30:20 PST 2009
In message: <200902011922.16810.hselasky at c2i.net>
Hans Petter Selasky <hselasky at c2i.net> writes:
: In the [was configure-] thread you can attach things synchronously. In the
: case of network adapters you should not rely on the device_attach() event
: from devd to do something, but rather the event from if_attach(), if such
: exits.
#
# Configure the interface on attach. Due to a historical accident, this
# script is called pccard_ether.
#
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";
};
Warner
More information about the freebsd-usb
mailing list