libftdi Archives

Subject: Re: UDEV, wasL Re: Writing and reading to a FT232R

From: Robert Pearce <rob@xxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 7 Nov 2011 22:17:24 +0000
Hi Uwe,

On Mon, 7 Nov 2011 20:41:26 +0100 you wrote:
> 
>     Robert>   SUBSYSTEMS=="usb", KERNEL=="ttyUSB*",
>     Robert> ATTRS{serial}=="xxxxxxx", SYMLINK="port_01"
> 
> Robert,
> 
> it there any way I can have ATTRS{serial} as SYMLINK target?

You mean have the device name (or link path) contain the serial number?
Yes, I think so, but I've not tried it. In theory the %s modifier gives
access to attributes, so:

SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", SYMLINK="sio_%s{serial}"

I haven't tried it, though.

Cheers,
Rob

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread