Re: Static device naming with udev, help please
* Florian Kulzer <florian.kulzer@icfo.es> [2008 Nov 16 11:41 -0600]:
> | This parent offers two properties to distinguish the devices, for
> | example like this:
> |
> | KERNEL=="ttyUSB*", SUBSYSTEM=="tty", KERNELS=="6-2:1.0", SYMLINK+="tty_dgl0"
> | KERNEL=="ttyUSB*", SUBSYSTEM=="tty", KERNELS=="7-2:1.0", SYMLINK+="tty_dgl1"
> |
> | Using ATTRS{modalias} instead of KERNELS should also work.
Thanks for your help, Florian. Those rules seem to be working. If
something changes I'll revisit this thread. For now the program is
working with the symlink.
$ ls -l /dev/tty_dgl0
lrwxrwxrwx 1 root root 7 2008-11-16 18:01 /dev/tty_dgl0 -> ttyUSB0
$ ls -l /dev/tty_dgl1
lrwxrwxrwx 1 root root 7 2008-11-16 18:01 /dev/tty_dgl1 -> ttyUSB1
Thanks again!
- 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: