Re: devd + driver load by plugged device class how to ?

From: M. Warner Losh <imp_at_bsdimp.com>
Date: Sun, 17 Apr 2005 11:10:15 -0600 (MDT)
In message: <1113740156.1018.6.camel_at_localhost>
            Vladimir Grebenschikov <vova_at_fbsd.ru> writes:
: Is there way to configure devd (or other daemon) to load appropriate
: driver by class, when device detected on bus, like:

Yes.  That's what nomatch events are for.  The default devd.conf
momatch entries in it.

: load ukbd.ko when USB keyboard plugged (same for other USB ums, ulpt,
: umass, etc)

usb doesn't support reprobing correctly yet, so this isn't possible
until it does.

: load atacard.ko, when ATA disk inserted into PCMCI slot

nomatch 10 {
	match "bus" "pccard[0-9]+];
	match "function_type" "4";
	action "kldload atacard";
}

: load if_wi.ko when WLan card inserted into PCMCI slot 

This device supports a large number of devices, so the list is rather
long...

Warner
Received on Sun Apr 17 2005 - 15:11:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:32 UTC