summaryrefslogtreecommitdiff
path: root/rules/80-net-setup-link.rules
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-10-30 04:10:19 +0100
committerTom Gundersen <teg@jklm.no>2013-10-30 15:36:04 +0100
commit3e137a1b9a0eac2bf43d493d3302c3c959b6ccdb (patch)
treec62ca7aa5a75856fcf58ae14ba4f4cc545cca3f0 /rules/80-net-setup-link.rules
parent415e7f65dbc66089f0d1b9de6785026596df88e7 (diff)
udev: link-config - let udevd set the ifname
Diffstat (limited to 'rules/80-net-setup-link.rules')
-rw-r--r--rules/80-net-setup-link.rules13
1 files changed, 13 insertions, 0 deletions
diff --git a/rules/80-net-setup-link.rules b/rules/80-net-setup-link.rules
new file mode 100644
index 0000000000..6e411a91f0
--- /dev/null
+++ b/rules/80-net-setup-link.rules
@@ -0,0 +1,13 @@
+# do not edit this file, it will be overwritten on update
+
+SUBSYSTEM!="net", GOTO="net_setup_link_end"
+
+IMPORT{builtin}="path_id"
+
+ACTION!="add", GOTO="net_setup_link_end"
+
+IMPORT{builtin}="net_setup_link"
+
+NAME=="", ENV{ID_NET_NAME}!="", NAME="$env{ID_NET_NAME}"
+
+LABEL="net_setup_link_end"