summaryrefslogtreecommitdiff
path: root/biosdevname.rules.in
diff options
context:
space:
mode:
Diffstat (limited to 'biosdevname.rules.in')
-rw-r--r--biosdevname.rules.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/biosdevname.rules.in b/biosdevname.rules.in
new file mode 100644
index 0000000..6159382
--- /dev/null
+++ b/biosdevname.rules.in
@@ -0,0 +1,7 @@
+KERNEL!="eth*", GOTO="biosdevname_end"
+ACTION!="add", GOTO="biosdevname_end"
+NAME=="?*", GOTO="biosdevname_end"
+
+PROGRAM="/sbin/biosdevname --policy=all_ethN -i %k", ENV{INTERFACE_NAME}="%c"
+
+LABEL="biosdevname_end"