<div dir="auto"><div>Did you place your rules in the correct order? ENV{ID_USB_INTERFACE_NUM} is set by usb_id in 50-udev-default.rules, so it would be available in 60-foo.rules but not in 20-foo.<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 9, 2024, 16:29 Daniel Spannbauer <<a href="mailto:ds@marco.de">ds@marco.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
<br>
our own device (see attachement for udevadm info --attribute-walk) <br>
should have a symlink.<br>
<br>
Therefore I create the following udev rule:<br>
<br>
SUBSYSTEM=="tty", KERNEL=="ttyACM[0-9]*", <br>
ENV{ID_USB_INTERFACE_NUM}=="02", ATTRS{idVendor}=="1dfb", <br>
ATTRS{idProduct}=="0010", SYMLINK+="2a"<br>
<br>
But a "udevadm test /sys/class/tty/ttyACM1" shows, that there is no <br>
match, a symlink is not created. If I remofe the "ENV" pattern, the rule <br>
is working.<br>
<br>
Any idea, whats wrong here?<br>
<br>
System is opensuse LEAP 15.5, RPM-VErsion of UDEV is 249.16-150400.8.25.7<br>
<br>
<br>
Best regards<br>
<br>
<br>
Daniel<br>
<br>
<br>
-- <br>
Daniel Spannbauer Systemadministration<br>
marco Systemanalyse und Entwicklung GmbH Tel +49 8333 9233-27 Fax -11<br>
Rechbergstr. 4-6, D 87727 Babenhausen Mobil +49 171 4033220<br>
<a href="https://www.marco.de" rel="noreferrer noreferrer" target="_blank">https://www.marco.de</a> Email <a href="mailto:ds@marco.de" target="_blank" rel="noreferrer">ds@marco.de</a><br>
Geschäftsführer Martin Reuter, Torsten Lukas HRB 171775 Amtsgericht München<br>
</blockquote></div></div></div>