On Mon, Nov 28, 2011 at 11:32 PM, Thomas Jarosch
<thomas.jarosch@xxxxxxxxxxxxx> wrote:
> Hi Uwe,
>
> On Tuesday, 8. November 2011 10:06:10 Uwe Bonnes wrote:
>> SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", SYMLINK="%s{product}_%s{serial}"
>> produces
>> lrwxrwxrwx 1 root root 7 8. Nov 10:05 _ -> ttyUSB0
>>
>> SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{vendor}=="IKDA",
>> SYMLINK="%s{product}_%s{serial}" doesn't produce any link
>
> One small question regarding udev and "SUBSYSTEM":
> Do we need to use "usb" or "usb_device"?
>
> The udev rules included in libftdi still use "usb_device".
It probably works as well. But I think the standard is like the following.
http://git.kernel.org/?p=linux/hotplug/udev.git;a=blob;f=rules/rules.d/50-udev-default.rules;hb=HEAD
54 # 'libusb' device nodes
55 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664"
--
Xiaofan
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|