Created
January 30, 2022 18:48
-
-
Save fluffywaffles/a5304df3db25acf29afe893774a6859f to your computer and use it in GitHub Desktop.
udev rule for renaming wireless interface link to fix Attribute Policy Error -22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Match my WiFi card by MAC address and rename it wifi0 | |
# | |
# WiFi card details obtained via: | |
# udevadm info --query all /sys/class/net/{name} | |
# udevadm info --attribute-walk --path=/sys/class/net/{name} | |
# | |
# Check with: | |
# udevadm test /sys/class/net/{name} | |
# | |
# All because wpa_supplicant creates virtual names too long for Kernel | |
# parameter validation... so the default persistent name wlp0s20f3 needs | |
# to be shortened. | |
# | |
# Installation: | |
# sudo cp 81-net-alias-link.rules /etc/udev/rules.d/ | |
# | |
SUBSYSTEM=="net", ATTR{address}=="a4:b1:c1:8a:27:49", NAME="wifi0" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment