Date: Fri, 13 Feb 2004 12:31:34 +0100 From: Guido van Rooij <guido@freebsd.org> To: current@freebsd.org Subject: usb devices and devfs settings Message-ID: <20040213113134.GA11021@gvr.gvr.org>
next in thread | raw e-mail | index | archive | help
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
@@ -24,6 +24,9 @@
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
@@ -127,3 +130,10 @@
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";
+};
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040213113134.GA11021>
