chiark / gitweb /
e83eb3ff5fb6bea57dd0d823fa53c8b1201e3f68
[elogind.git] / rules / 80-net-name-slot.rules
1 # do not edit this file, it will be overwritten on update
2
3 ACTION=="remove", GOTO="net_name_slot_end"
4 SUBSYSTEM!="net", GOTO="net_name_slot_end"
5 NAME!="", GOTO="net_name_slot_end"
6
7 IMPORT{cmdline}="net.predictable-names"
8 ENV{net.predictable-names}=="0", GOTO="net_name_slot_end"
9 IMPORT{cmdline}="rd.net.predictable-names"
10 ENV{rd.net.predictable-names}=="0", TEST=="/etc/initrd-release", GOTO="net_name_slot_end"
11
12 NAME=="", ENV{ID_NET_NAME_ONBOARD}!="", NAME="$env{ID_NET_NAME_ONBOARD}"
13 NAME=="", ENV{ID_NET_NAME_SLOT}!="", NAME="$env{ID_NET_NAME_SLOT}"
14 NAME=="", ENV{ID_NET_NAME_PATH}!="", NAME="$env{ID_NET_NAME_PATH}"
15
16 LABEL="net_name_slot_end"