summaryrefslogtreecommitdiff
path: root/extras/rule_generator
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-04-26 20:53:30 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-04-26 20:53:30 +0200
commit1f698065bc616633e715db677a9584829e2063af (patch)
tree8c0e99e5b2ed7628cbfbf4a5636b127781ba64fa /extras/rule_generator
parent37ed4f5619d48ad8288613aca48639b8492cf1ad (diff)
rule_generator: net - fix usb comment generation
On Sat, Apr 4, 2009 at 22:17, Omair Eshkenazi <stimpson@phys.huji.ac.il> wrote: > I noticed that in (70-)persistent-net.rules, the comments for USB devices > are missing the device/vendor id's. Example: > # USB device 0x:0x (rt73usb)
Diffstat (limited to 'extras/rule_generator')
-rw-r--r--extras/rule_generator/75-persistent-net-generator.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/rule_generator/75-persistent-net-generator.rules b/extras/rule_generator/75-persistent-net-generator.rules
index 75b4534af2..5c2f100597 100644
--- a/extras/rule_generator/75-persistent-net-generator.rules
+++ b/extras/rule_generator/75-persistent-net-generator.rules
@@ -37,7 +37,7 @@ ENV{MATCHADDR}=="00:00:00:00:00:00", ENV{MATCHADDR}=""
# build comment line for generated rule:
SUBSYSTEMS=="pci", ENV{COMMENT}="PCI device $attr{vendor}:$attr{device} ($driver)"
-SUBSYSTEMS=="usb", ENV{COMMENT}="USB device 0x$attr{idVendor}:0x$attr{idProduct} ($driver)"
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="?*", ENV{COMMENT}="USB device 0x$attr{idVendor}:0x$attr{idProduct} ($driver)"
SUBSYSTEMS=="pcmcia", ENV{COMMENT}="PCMCIA device $attr{card_id}:$attr{manf_id} ($driver)"
SUBSYSTEMS=="ieee1394", ENV{COMMENT}="Firewire device $attr{host_id})"