summaryrefslogtreecommitdiff
path: root/rules/80-net-setup-link.rules
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2014-01-11 20:46:58 -0500
committerAnthony G. Basile <blueness@gentoo.org>2014-01-11 20:46:58 -0500
commit248ea81923ce671979ccbe0bca5683d4239feb70 (patch)
treebd41e8d81a2eb89cbc757c7464b569370b852300 /rules/80-net-setup-link.rules
parentd4a1c1bcf018b4beb6628e22d9014322ffc79628 (diff)
rules: bring up to date with upstream.
Note: some of these rules are premature because we have yet to add udev_builtin_net_link. These commits were authored by Kay Sievers David Herrmann Tom Gundersen Lennart Poettering Bastien Nocera Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
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"