chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rules: Debian update
[elogind.git]
/
rules
/
debian
/
75-persistent-net-generator.rules
diff --git
a/rules/debian/75-persistent-net-generator.rules
b/rules/debian/75-persistent-net-generator.rules
index e8d3b888e0f69fce3cc33279b1c0c22eb2bd50fe..9fdf106045228e27aaffd5e7e3106092b84a2c6d 100644
(file)
--- a/
rules/debian/75-persistent-net-generator.rules
+++ b/
rules/debian/75-persistent-net-generator.rules
@@
-1,5
+1,5
@@
# These rules generate rules to keep network interface names unchanged
# These rules generate rules to keep network interface names unchanged
-# across reboots write them to /etc/udev/rules.d/70-persistent-net.rules.
+# across reboots
and
write them to /etc/udev/rules.d/70-persistent-net.rules.
# variables used to communicate:
# MATCHADDR MAC address used for the match
# variables used to communicate:
# MATCHADDR MAC address used for the match
@@
-16,9
+16,6
@@
SUBSYSTEM!="net", GOTO="persistent_net_generator_end"
# ignore the interface if a name has already been set
NAME=="?*", GOTO="persistent_net_generator_end"
# ignore the interface if a name has already been set
NAME=="?*", GOTO="persistent_net_generator_end"
-# ignore interfaces without a driver link like bridges and VLANs
-DRIVERS!="?*", GOTO="persistent_net_generator_end"
-
# device name whitelist
KERNEL!="eth*|ath*|wlan*[0-9]|msh*|ra*|sta*|ctc*|lcs*|hsi*", \
GOTO="persistent_net_generator_end"
# device name whitelist
KERNEL!="eth*|ath*|wlan*[0-9]|msh*|ra*|sta*|ctc*|lcs*|hsi*", \
GOTO="persistent_net_generator_end"
@@
-76,8
+73,9
@@
ATTRS{driver}=="?*", \
ENV{COMMENT}="$env{COMMENT} ($attr{driver})"
ENV{COMMENT}="$env{COMMENT} ($attr{driver})"
+# ignore interfaces without a driver link like bridges and VLANs, otherwise
# generate and write the rule
# generate and write the rule
-IMPORT{program}="write_net_rules"
+
DRIVERS=="?*",
IMPORT{program}="write_net_rules"
# rename the interface if requested
ENV{INTERFACE_NEW}=="?*", NAME="$env{INTERFACE_NEW}"
# rename the interface if requested
ENV{INTERFACE_NEW}=="?*", NAME="$env{INTERFACE_NEW}"