From c8663095e327e8c2859ac348ed75890a0102244e Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sun, 16 Aug 2009 21:12:04 +0200 Subject: [PATCH] rule_generator: net - fix MATCHDEVID This got lost for some reason with an earlier change. Thanks to Marco d'Itri for noticing. --- extras/rule_generator/75-persistent-net-generator.rules | 3 +++ 1 file changed, 3 insertions(+) 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}="" -- 2.39.5