csanyi...@gmail.com a écrit : > > on my Wheezy system I just can't set a persistent 'wlan0' name for my > USB WiFi apadter. > > In /etc/udev/rules.d/70-persistent-net.rules I have the line: > # USB device 0x:0x (rtl8192cu) > SUBSYSTEM=="usb", ACTION=="add", DRIVERS=="usb", > ATTRS{idVendor}=="0586", ATTRS{idProduct}=="341f", ATT > R{manufacturer}=="Realtek", ATTR{product}=="802.11n WLAN Adapter", > ATTR{dev_id}=="0x0", ATTR{type}=="1" > , KERNEL=="wlan*", NAME="wlan0"
Shouldn't ATTRS be used with {manufacturer} and {product} instead of ATTR ? Besides, are they really useful ? Shouldn't it be enough to match the USB vendor and product IDs ? > After that, when I replug the WLAN Adapter, I get in > 70-persistent-net.rules another line: > # USB device 0x:0x (rtl8192cu) > SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", > ATTR{address}=="00:e0:4c:81:92:e7", ATTR{dev_id}=="0x0" > , ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan1" > > and after another replugging I get: > # USB device 0x:0x (rtl8192cu) > SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", > ATTR{address}=="00:e0:4c:81:92:77", ATTR{dev_id}=="0x0" > , ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan2" Weird that the interface has a different MAC (although very similar) address each time. -- 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/553bf704.6060...@plouf.fr.eu.org