From: Kay Sievers Date: Sun, 16 Aug 2009 19:12:04 +0000 (+0200) Subject: rule_generator: net - fix MATCHDEVID X-Git-Tag: 174~826 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8663095e327e8c2859ac348ed75890a0102244e;p=systemd rule_generator: net - fix MATCHDEVID This got lost for some reason with an earlier change. Thanks to Marco d'Itri for noticing. --- diff --git a/extras/rule_generator/75-persistent-net-generator.rules b/extras/rule_generator/75-persistent-net-generator.rules index 2583e22f..a9dfdce7 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}=""