From a802f4bc50479de27700eb5deba29106a2c48cda Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 18 Mar 2012 22:13:39 +0100 Subject: digital/dev2/doc: add udev rule --- digital/dev2/doc/dev2.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'digital/dev2/doc') diff --git a/digital/dev2/doc/dev2.txt b/digital/dev2/doc/dev2.txt index 0c3b7f28..2eed3b3d 100644 --- a/digital/dev2/doc/dev2.txt +++ b/digital/dev2/doc/dev2.txt @@ -16,6 +16,16 @@ Then look at kernel messages to locate the new serial devices (/dev/ttyUSBx). If two functions are presents in the same firmware, two serial devices should be detected. +To let udev do this automatically for you, you can add this to the file +`/etc/udev/rules.d/70-apbteam.rules`: + + SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="03eb", ATTR{idProduct}=="204e", \ + ATTR{manufacturer}=="APBTeam", MODE="0660", GROUP="plugdev", \ + RUN+="/sbin/modprobe usbserial vendor=0x03eb product=0x204e" + +This will also automatically authorize the `plugdev` group to use the device +without root access. + Controlling the output ====================== -- cgit v1.2.3