blob: 972fb5c53549b12ec38ff2f78e28ed54588f5c1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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"
|