csanyi...@gmail.com a écrit : >> >> I should wrote here like: >> # USB device 0x:0x (rtl8192cu) >> SUBSYSTEM=="usb", ACTION=="add", DRIVERS=="usb", \ >> ATTR{idVendor}=="0586", ATTR{idProduct}=="341f", \ >> ATTR{manufacturer}=="Realtek", \ >> ATTR{product}=="802.11n WLAN Adapter", ATTR{dev_id}=="0x0", \ >> ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
This is wrong, as I wrote earlier : idVendor, idProduct, manufacturer and product should use ATTRS instead of ATTR, because these attributes belong to parent devices, not to the network interface itself. udevadm info -a -p /sys/class/net/wlan0 > I have found the solution: Not *the* solution, just *a* solution. > # USB device 0x:0x (rtl8192cu) > SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", \ > ATTR{address}=="00:e0:4c:81:92:*", ATTR{dev_id}=="0x0", \ > ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0" > > I don't use neither > ATTR{idVendor}=="0586", nor > ATTR{idProduct}=="341f" > > and it still works. > Why? See above : it works now because they would not match. If you remove criteria, the match is less restrictive (at the risk of matching other devices too). -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/553cb34a.5050...@plouf.fr.eu.org