diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-09-25 17:18:49 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-09-25 17:18:49 +0200 |
commit | 8fe5f78b7e53bcae858824f40e03d60ba19eae73 (patch) | |
tree | 2be65cffef83d37283ad231c6cad803a361aebae /extras/rule_generator/75-persistent-net-generator.rules | |
parent | d438c80e57b1cc98540399f817eda7fc2568cc72 (diff) |
rule_generator: always match netif type in generated rule
Diffstat (limited to 'extras/rule_generator/75-persistent-net-generator.rules')
-rw-r--r-- | extras/rule_generator/75-persistent-net-generator.rules | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extras/rule_generator/75-persistent-net-generator.rules b/extras/rule_generator/75-persistent-net-generator.rules index d09bc38028..726bf27871 100644 --- a/extras/rule_generator/75-persistent-net-generator.rules +++ b/extras/rule_generator/75-persistent-net-generator.rules @@ -20,15 +20,15 @@ NAME=="?*", GOTO="persistent_net_generator_end" # device name whitelist KERNEL!="eth*|ath*|wlan*[0-9]|ra*|sta*|ctc*|lcs*|hsi*", GOTO="persistent_net_generator_end" -# add interface type match for some devices -KERNEL=="wlan*|ath*", ENV{MATCHIFTYPE}="1" - # ignore Xen virtual interfaces SUBSYSTEMS=="xen", GOTO="persistent_net_generator_end" # read MAC address ENV{MATCHADDR}="$attr{address}" +# match interface type +ENV{MATCHIFTYPE}="$attr{type}" + # do not use "locally administered" MAC address ENV{MATCHADDR}=="?[2367abef]:*", ENV{MATCHADDR}="" |