]> err.no Git - systemd/commitdiff
rule_generator: net - fix MATCHDEVID
authorKay Sievers <kay.sievers@vrfy.org>
Sun, 16 Aug 2009 19:12:04 +0000 (21:12 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Sun, 16 Aug 2009 19:12:04 +0000 (21:12 +0200)
This got lost for some reason with an earlier change.

Thanks to Marco d'Itri <md@linux.it> for noticing.

extras/rule_generator/75-persistent-net-generator.rules

index 2583e22fcefa0cd117704194779b848e1059f086..a9dfdce7a57592b6f871d6236458e5ca8be36e1a 100644 (file)
@@ -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}=""