Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Feb 2009 11:30:13 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        hselasky@c2i.net
Cc:        freebsd-usb@FreeBSD.org, thompsa@FreeBSD.org
Subject:   Re: USB2 patches
Message-ID:  <20090201.113013.267651064.imp@bsdimp.com>
In-Reply-To: <200902011922.16810.hselasky@c2i.net>
References:  <200902011220.18745.hselasky@c2i.net> <20090201175021.GA32503@citylink.fud.org.nz> <200902011922.16810.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200902011922.16810.hselasky@c2i.net>
            Hans Petter Selasky <hselasky@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



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