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

Re: Stic device naming with udev, help please



* Rob Starling <debian-user@robstarling.org> [2008 Nov 15 03:10 -0600]:
> On Fri, Nov 14, 2008 at 08:08:51PM -0600, Nate Bargmann wrote:
> > SUBSYSTEMS=="usb-serial", ATTRS{busnum}=="6", ATTRS{devnum}=="3", DRIVERS=="pl2303", NAME="ttyUSB0"
> > SUBSYSTEMS=="usb-serial", ATTRS{busnum}=="7", ATTRS{devnum}=="5", DRIVERS=="pl2303", NAME="ttyUSB1"
> 
> try naming them something interesting so you're not competing
> with the auto-generated numbered ones.  (you didn't remove the
> existing rules, did you?)
> 
> "tty_dongleA" and "tty_dongleB" maybe?

That seemed like a good idea.  So I modified my rules file as follows:

# Setup Prolific Technology Inc. USB-Serial Controller dongles for statice names
KERNEL=="ttyUSB0", SUBSYSTEMS=="usb-serial", ATTRS{busnum}=="6", ATTRS{devnum}=="3", DRIVERS=="pl2303", SYMLINK+="tty_dgl0"
KERNEL=="ttyUSB1", SUBSYSTEMS=="usb-serial", ATTRS{busnum}=="7", ATTRS{devnum}=="5", DRIVERS=="pl2303", SYMLINK+="tty_dgl1"

and no symlinks were created although /dev/ttyUSB0 and /dev/ttyUSB1
exist and they came up in the order that I want (probably will change
on the next restart).

- Nate >>

-- 

"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."

Ham radio, Linux, bikes, and more: http://n0nb.us/index.html


Reply to: