diff options
Diffstat (limited to 'rules')
-rw-r--r-- | rules/80-net-name-slot.rules | 11 | ||||
-rw-r--r-- | rules/Makefile.am | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/rules/80-net-name-slot.rules b/rules/80-net-name-slot.rules new file mode 100644 index 0000000000..2834e82dbf --- /dev/null +++ b/rules/80-net-name-slot.rules @@ -0,0 +1,11 @@ +# do not edit this file, it will be overwritten on update + +ACTION=="remove", GOTO="net_name_slot_end" +SUBSYSTEM!="net", GOTO="net_name_slot_end" +NAME!="", GOTO="net_name_slot_end" + +NAME=="", ENV{ID_NET_NAME_ONBOARD}!="", NAME="$env{ID_NET_NAME_ONBOARD}" +NAME=="", ENV{ID_NET_NAME_SLOT}!="", NAME="$env{ID_NET_NAME_SLOT}" +NAME=="", ENV{ID_NET_NAME_PATH}!="", NAME="$env{ID_NET_NAME_PATH}" + +LABEL="net_name_slot_end" diff --git a/rules/Makefile.am b/rules/Makefile.am index 6adbd6e469..1741bd2ed8 100644 --- a/rules/Makefile.am +++ b/rules/Makefile.am @@ -16,6 +16,7 @@ dist_udevrules_DATA = \ 75-probe_mtd.rules \ 75-tty-description.rules \ 78-sound-card.rules \ + 80-net-name-slot.rules \ 95-udev-late.rules if HAVE_MODULES |