1 |
On Thu, 17 Aug 2006 13:58:11 +0100, Graham Murray wrote: |
2 |
|
3 |
> Is there any way to write udev rules which will map the usb-serial |
4 |
> device connected to a particular socket on either the PC or a hub to a |
5 |
> known name? So that if the usb connector is removed and replaced (in |
6 |
> the same socket) or the system is rebooted that programs will be able |
7 |
> to open the correct device connected to each usb serial adaptor? |
8 |
|
9 |
Use a pattern match for ID, e.g. ID=="2-*". the first number of the ID |
10 |
refers to the physical port used. Alternatively, if the devices are |
11 |
different, match on SYSFS{product}, SYSFS{manufacturer} or even DRIVER. |
12 |
|
13 |
|
14 |
-- |
15 |
Neil Bothwick |
16 |
|
17 |
Life is a sexually transmitted disease and the mortality rate is 100%. |