summaryrefslogtreecommitdiff
path: root/extras/rule_generator
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-08-16 21:12:04 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-08-16 21:12:04 +0200
commitc8663095e327e8c2859ac348ed75890a0102244e (patch)
treec579c9fec7bea70762711d141604dcf8402e5371 /extras/rule_generator
parent79f3b4a161947a795537af2ece7b91669d0567f9 (diff)
rule_generator: net - fix MATCHDEVID
This got lost for some reason with an earlier change. Thanks to Marco d'Itri <md@linux.it> for noticing.
Diffstat (limited to 'extras/rule_generator')
-rw-r--r--extras/rule_generator/75-persistent-net-generator.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/rule_generator/75-persistent-net-generator.rules b/extras/rule_generator/75-persistent-net-generator.rules
index 2583e22fce..a9dfdce7a5 100644
--- a/extras/rule_generator/75-persistent-net-generator.rules
+++ b/extras/rule_generator/75-persistent-net-generator.rules
@@ -55,6 +55,9 @@ ENV{MATCHADDR}=="52:54:ab:*", GOTO="globally_administered_whitelist"
# Kingston Technologies
ENV{MATCHADDR}=="e2:0c:0f:*", GOTO="globally_administered_whitelist"
+# match interface dev_id
+ATTR{dev_id}=="?*", ENV{MATCHDEVID}="$attr{dev_id}"
+
# do not use "locally administered" MAC address
ENV{MATCHADDR}=="?[2367abef]:*", ENV{MATCHADDR}=""