linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Theo <teo.wolf@aol.com>
To: linux-hotplug@vger.kernel.org
Subject: udev: attributes rules to identical devices
Date: Wed, 15 Jan 2014 14:15:43 +0000	[thread overview]
Message-ID: <loom.20140115T151508-295@post.gmane.org> (raw)

Hello everybody, 

I am working with Kubuntu 13.10. 
I need to assign permanent names to some modems that I am working with. 
This would be possible by creating a rule in /etc/udev/rules.d/ and defining 
a symlink, something like this:

KERNEL="ttyUSB[0-9]*", ATTRS{serial}="0000:00:1d.0", SYMLINK="Modem0"

The problem is that all these modems have the same serial, so I cannot 
distinguish them and cannot assign a different symlink to each one. 

If it can help, the output of lsusb with two modems connected is this:
 
Bus 006 Device 002: ID 0403:6001 Future Technology Devices International, Ltd 
FT232 USB-Serial (UART) IC
Bus 005 Device 002: ID 0403:6001 Future Technology Devices International, Ltd 
FT232 USB-Serial (UART) IC

Is there a way to do this? 
Thanks.

Theo


             reply	other threads:[~2014-01-15 14:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-15 14:15 Theo [this message]
2014-01-15 14:26 ` udev: attributes rules to identical devices Greg KH
2014-01-15 15:11 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20140115T151508-295@post.gmane.org \
    --to=teo.wolf@aol.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).