From mboxrd@z Thu Jan 1 00:00:00 1970 From: J McBane Date: Tue, 18 Oct 2005 22:41:05 +0000 Subject: How do assign specific nodes to 2-port USB-to-serial adapter? Message-Id: <1129675265.43557a0137b76@webmail.grandecom.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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