Date: Thu, 1 Feb 2007 06:38:26 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 113811 for review Message-ID: <200702010638.l116cQJ5008234@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=113811 Change 113811 by imp@imp_lighthouse on 2007/02/01 06:37:36 devd glue to automatically load crypto. # Maybe the last rev introduces a race when up/down events # happen quickly? Affected files ... .. //depot/projects/arm/src/etc/devd.conf#3 edit Differences ... ==== //depot/projects/arm/src/etc/devd.conf#3 (text+ko) ==== @@ -76,6 +76,25 @@ action "/etc/rc.d/dhclient start $subsystem"; }; +# The ieee80211 system gives us hints that it would like us to load +# certain drivers. Honor those hints and load them automatically. This +# helps for wpa_supplicant, but not for hostapd because the former retries +# a lot, and the latter doesn't. At least this makes it easier to get +# some of the more oddball crypto goo loaded automatically since there +# are issues doing it synchronously in the kernel. Far from perfect, but +# very adequate for the day. This can be removed when a better automatic +# system is in place. +#XXX Not sure this is the right format for the message, and will need to +#XXX investigate what others do. Maybe the 'type' should be 'LOAD' and +#XXX the subsystem be the module to load to match more closely what +#XXX IFNET does. +notify 10 { + match "system" "ieee80211"; + match "subsystem" "loader"; + action "echo $system $subsystem $type | logger"; + action "kldload $type"; +}; + # An entry like this might be in a different file, but is included here # as an example of how to override things. Normally 'ed50' would match # the above attach/detach stuff, but the value of 100 makes it
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702010638.l116cQJ5008234>