

Code: Select all
echo "alias eth1 ipw2200" >> /etc/modules.d/aliases && /sbin/modules-update


Code: Select all
less /usr/share/doc/ipw2200-1.0.1/CHANGES.gz
Code: Select all
KERNEL="eth*", SYSFS{address}="00:0e:35:6f:33:66", NAME="wlan0"Code: Select all
# udevinfo -a -p /sys/class/net/eth0/
Code: Select all
wlan0 IEEE 802.11g ESSID:"LUTZHOME" Nickname:"LUTZHOME"
Mode:Managed Frequency:2.457 GHz Access Point: 00:04:E2:B6:C2:BA
Bit Rate=54 Mb/s Tx-Power=255 dBm
RTS thr:off Fragment thr:off
Encryption key:AF91-2211-84AB-CDEF-0987-6543-21 Security mode:open
Power Management:off
Link Quality=96/100 Signal level=-31 dBm Noise level=-85 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0


Code: Select all
notebook ~ # qpkg -f `which ifrename`
net-wireless/wireless-tools *Code: Select all
wlan0 mac 00:0E:35:75:7C:07
wlan0 mac 00:00:00:00:00:00Code: Select all
notebook ~ # grep eth /etc/udev/rules.d/10-local.rules
KERNEL="eth*",SYSFS{address}="00:0f:1f:25:89:79", NAME="eth0"
KERNEL="eth*", NAME="wlan0"
* sys-fs/udev
Latest version available: 056
Latest version installed: 056
Size of downloaded files: 468 kB
Homepage: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
Description: Linux dynamic and persistent device naming support (aka userspace devfs)
License: GPL-2Code: Select all
KERNEL="eth*", SYSFS{address}="00:0e:35:6f:33:66", NAME="wlan0"Code: Select all
KERNEL=="eth*", SYSFS{address}=="00:0e:35:6f:33:66", NAME="wlan0"
I assume you mean %n - there is no %d in man udev. This is a bad question. The point of customizing udev is to unambiguously assign a meaningful name to devices. A name which contains a random number defeats the point of having meaning.bookstack wrote:How could we *automatically* rename the eth%d interface to wlan0%d
Code: Select all
SUBSYSTEM=="net", DRIVERS=="ndiswrapper", NAME="wlan"