When I add usb devices after booting the system, the associated devices do show up in devfs. In my case: da0 and das0. However, the permissions on these devices does not change, despite devfs.conf. So how about adding the following to devd.conf in the default system: Note: the sleep 1 is necessary to give geom the chance to come up with devices before devd start executing /etc/rc.d/devfs -Guido --- /usr/src/etc/devd.conf Mon Jan 5 12:20:33 2004 +++ ./devd.conf Fri Feb 13 12:30:28 2004 _at__at_ -24,6 +24,9 _at__at_ set scsi-controller-regex "(adv|advw|aic|aha|ahb|ahc|ahd|bt|ct|iir|isp|mly|mpt|ncv|nsp|\ stg|sym|wds)[0-9]+"; + set usb-regex + "(uaudio|ubsa|ucom|udbp|ufm|uftdi|ugen|uhid|uhidev|ukbd|ulpt|\ + umass|umodem|ums|uplcom|urio|uscanner|uvisor|uvsco)[0-9]+"; }; # Note that the attach/detach with the highest value wins, so that one can _at__at_ -127,3 +130,10 _at__at_ action "/etc/acpi_ac $notify"; }; */ +# +# Set correct permissions for scsi and usb devs +# +attach 0 { + device-name "($usb-regex|$scsi-controller-regex)"; + action "sleep 1;/etc/rc.d/devfs start"; +};Received on Fri Feb 13 2004 - 02:31:35 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:42 UTC