Re: Using %s{product} and %s{bInterfaceNumber} in UDEV rules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 08, 2011 at 06:01:59PM +0100, Uwe Bonnes wrote:
> >>>>> "Greg" == Greg KH <greg@xxxxxxxxx> writes:
> 
>     Greg> On Tue, Nov 08, 2011 at 05:17:22PM +0100, Uwe Bonnes wrote:
>     >> Hello,
>     >> 
>     >> in a quest to get static name for our devices, I started with
>     >> following rule:
>     >> 
>     >> SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{manufacturer}=="IKDA", \
>     >> SYMLINK="%s{product}_%s{serial}"
> 
>     Greg> Wait, if you have a usb to serial device, you already have
>     Greg> persistant device names in the /dev/serial/ directories, what's
>     Greg> wrong with those?
> 
> Knowledge about it?
> 
> # cd ..linux-2.6/Documentation
> # find |xargs grep /dev/serial

Plug in your device and look in the /dev/serial directory.

It isn't a kernel thing, it's a udev thing, why would you expect the
documentation to be in the kernel directory?

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux