:: Re: [DNG] Pulling my hair out over …
Top Page
Delete this message
Reply to this message
Author: Nate Bargmann
Date:  
To: dng
Subject: Re: [DNG] Pulling my hair out over a udev rule
* On 2016 08 Jul 09:18 -0500, Rainer Weikusat wrote:
> Nate Bargmann <n0nb@???> writes:
> > I may have swerved into the solution:
> >
> > ACTION=="add", KERNEL=="ttyUSB*", KERNELS=="1-1.4:1.0", SYMLINK+="ttyUSB99"
> >
> >
> > Time will tell if it survives a reboot...
>
> I think you shouldn't use the devpath in here as this means the rule
> won't match anymore if the position of the device on the USB
> changes. Matching against the product ID (vendor id/ model id/ revision,
> leading zeroes not dropped) makes more sense.


It would, except that I have four of these identical adapters and none
have a serial number programmed in. For this particular one I will not
be placing it in a different port so that is why I chose to match on the
port position.

- 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://www.n0nb.us