You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.3 KiB
32 lines
1.3 KiB
7 years ago
|
diff --git a/biosdevname.rules.in b/biosdevname.rules.in
|
||
|
index 0a32aa5..52aaea5 100644
|
||
|
--- a/biosdevname.rules.in
|
||
|
+++ b/biosdevname.rules.in
|
||
|
@@ -4,6 +4,9 @@ NAME=="?*", GOTO="netdevicename_end"
|
||
|
ATTR{type}!="1", GOTO="netdevicename_end"
|
||
|
ENV{DEVTYPE}=="?*", GOTO="netdevicename_end"
|
||
|
|
||
|
+# whitelist all Dell systems
|
||
|
+ATTR{[dmi/id]sys_vendor}=="Dell*", ENV{UDEV_BIOSDEVNAME}="1"
|
||
|
+
|
||
|
# kernel command line "biosdevname={0|1}" can turn off/on biosdevname
|
||
|
IMPORT{cmdline}="biosdevname"
|
||
|
ENV{biosdevname}=="?*", ENV{UDEV_BIOSDEVNAME}="$env{biosdevname}"
|
||
|
@@ -12,13 +15,13 @@ ENV{biosdevname}=="?*", ENV{UDEV_BIOSDEVNAME}="$env{biosdevname}"
|
||
|
ENV{UDEV_BIOSDEVNAME}=="0", GOTO="netdevicename_end"
|
||
|
ENV{UDEV_BIOSDEVNAME}=="1", GOTO="netdevicename_start"
|
||
|
|
||
|
-# uncomment the next line for biosdevname to be off by default
|
||
|
-# GOTO="netdevicename_end"
|
||
|
+# off by default
|
||
|
+GOTO="netdevicename_end"
|
||
|
|
||
|
LABEL="netdevicename_start"
|
||
|
|
||
|
# using NAME= instead of setting INTERFACE_NAME, so that persistent
|
||
|
# names aren't generated for these devices, they are "named" on each boot.
|
||
|
-SUBSYSTEMS=="pci", PROGRAM="/sbin/biosdevname --policy physical -i %k", NAME="%c", OPTIONS+="string_escape=replace"
|
||
|
+SUBSYSTEMS=="pci", PROGRAM="/sbin/biosdevname --smbios 2.6 --nopirq --policy physical -i %k", NAME="%c" OPTIONS+="string_escape=replace"
|
||
|
|
||
|
LABEL="netdevicename_end"
|