linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How do assign specific nodes to 2-port USB-to-serial adapter?
@ 2005-10-18 22:41 J McBane
  2005-10-18 23:35 ` Oli
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: J McBane @ 2005-10-18 22:41 UTC (permalink / raw)
  To: linux-hotplug

Greetings,

My USB-to-serial adapter (gives me 2 serial ports) is currently being named
ttyUSB0 and ttyUSB1.  I would like to change the name of the nodes to test0 and
test1, for example.

I understand how to normally accomplish this, except this device shares the same
serial number and ID, according to "udevinfo -a -p /sys/class/tty/ttyUSB0" and
"udevinfo -a -p /sys/class/tty/ttyUSB1".

I don't know how to tell udev/hotplug how to differentiate between the two
serial ports.

The best I can come up with is the following, which only gives me a test0 node
(and no ttyUSB nodes):
BUS="usb", SYSFS{serial}="V32408622-0", NAME="test0"
BUS="usb", SYSFS{serial}="V32408622-0", NAME="test1"

I'm thinking that one of the "simple printf-like string substitutions" will do
the trick but none have worked thus far.

Any suggestions?

Thanks in advance,

J McBane
jmcbane a grandecom.net



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-19 17:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-18 22:41 How do assign specific nodes to 2-port USB-to-serial adapter? J McBane
2005-10-18 23:35 ` Oli
2005-10-19 15:20 ` Oli
2005-10-19 17:41 ` J McBane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).