Re: UDEV rule not matching...why?

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

 



Am 09.10.2024 um 20:55 schrieb Andrei Borzenkov:
09.10.2024 17:02, Daniel Spannbauer wrote:
Hello,


thanks for the response.

My rule is in "55-my-rules.rules"


For SUBSYSTEM=="tty" the usb_id is called in 60-serial.rules.


Thats the trick, thanks.


I moved my rules to 98-.... and this line works:

SUBSYSTEM=="tty", KERNEL=="ttyACM[0-9]*", ENV{ID_USB_INTERFACE_NUM}=="02", ATTRS{idVendor}=="1dfb", ATTRS{idProduct}=="0010", SYMLINK+="2a"


It also works with SUBSYSTEMS=="usb".

But the following still doesn't work:

SUBSYSTEM=="tty", KERNEL=="ttyACM[0-9]*", ATTRS{bInterfaceNumber}=="02", ATTRS{idVendor}=="1dfb", ATTRS{idProduct}=="0010", SYMLINK+="2a


Any idea why?

And how can I find out, which value comes with which rules so I can set my rules at the right time?

I only try to understand the whole udev thing.


Regards


Daniel



--
Daniel Spannbauer                             Systemadministration
marco Systemanalyse und Entwicklung GmbH      Tel   +49 8333 9233-27 Fax -11
Rechbergstr. 4-6, D 87727 Babenhausen         Mobil +49 171 4033220
https://www.marco.de                          Email ds@xxxxxxxx
Geschäftsführer Martin Reuter, Torsten Lukas  HRB 171775 Amtsgericht München




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux