diff options
author | Holger Paradies <retabell@gmx.de> | 2020-08-22 22:43:34 +0200 |
---|---|---|
committer | Holger Paradies <retabell@gmx.de> | 2020-08-22 22:43:34 +0200 |
commit | bbdc90e4a19f8b6a696af82e7bca7e9943f286de (patch) | |
tree | 42d055f33cd17779c34f4ba25bd3a2af57c3e2ed /kanotix-udev-wlan-hack/70-kanotix-hack.rules | |
parent | 226ae35b6e3748f573782cba19d3c20fb3e44770 (diff) | |
download | kanotix-packages-bbdc90e4a19f8b6a696af82e7bca7e9943f286de.zip kanotix-packages-bbdc90e4a19f8b6a696af82e7bca7e9943f286de.tar.gz |
Wlan udev rules
Fix for wlan usb-dongles, avoid long device names
Diffstat (limited to 'kanotix-udev-wlan-hack/70-kanotix-hack.rules')
-rw-r--r-- | kanotix-udev-wlan-hack/70-kanotix-hack.rules | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/kanotix-udev-wlan-hack/70-kanotix-hack.rules b/kanotix-udev-wlan-hack/70-kanotix-hack.rules new file mode 100644 index 0000000..972fb5c --- /dev/null +++ b/kanotix-udev-wlan-hack/70-kanotix-hack.rules @@ -0,0 +1,22 @@ +# file is part of kanotix-udev-wlan-hack.deb +# DO not edit, will be overwritten by update +# /etc/udev/rules.d/70-kanotix-hack.rules +# modified file from /lib/udev/rules.d/73-usb-net-by-mac.rules +# force ID_NET_NAME_PATH instead of ID_NET_NAME_MAC +# https://wiki.debian.org/NetworkInterfaceNames + +ACTION=="remove", GOTO="usb_net_by_mac_end" +SUBSYSTEM!="net", GOTO="usb_net_by_mac_end" +ATTR{name_assign_type}=="3", GOTO="usb_net_by_mac_end" + +IMPORT{cmdline}="net.ifnames" +ENV{net.ifnames}=="0", GOTO="usb_net_by_mac_end" + +SUBSYSTEMS=="usb", NAME=="", \ + ATTR{address}=="?[014589cd]:*", \ + TEST!="/etc/udev/rules.d/80-net-setup-link.rules", \ + TEST!="/etc/systemd/network/99-default.link", \ + IMPORT{builtin}="net_id", NAME="$env{ID_NET_NAME_PATH}" +# IMPORT{builtin}="net_id", NAME="$env{ID_NET_NAME_SLOT}" + +LABEL="usb_net_by_mac_end" |