Re: udev - set persistent name for WLAN Adapter
csanyipal@gmail.com writes:
> songbird <songbird@anthive.com> writes:
>
>> csanyipal@gmail.com wrote:
>>> Hello,
>>>
>>> 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"
>
>> i'm not sure if the above is the exact entry, but if it
>> is the entry should be all on one line.
>
> Actually it is all on one line in the 70-persistent-net.rules file .
>
> 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"
I have found the 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?
--
Regards from Pal
Reply to: