]> err.no Git - systemd/commitdiff
rule_generator: always match netif type in generated rule
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 25 Sep 2007 15:18:49 +0000 (17:18 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 25 Sep 2007 15:18:49 +0000 (17:18 +0200)
extras/rule_generator/75-persistent-net-generator.rules

index d09bc3802868974ffa47e73f1c268274e2ec2736..726bf278719bd3b7260eca4b0bc324094fc07514 100644 (file)
@@ -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}=""