diff options
author | Kay Sievers <kay@vrfy.org> | 2012-11-09 15:23:41 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-11-09 15:23:41 +0100 |
commit | 09d8f5d757515122d7b726218e249621e564157c (patch) | |
tree | b2151c9dcab98043695f1aa3ee900456dea0b84b /hwdb/ids-update.pl | |
parent | 8db6dcfd3c3d19d35767f04884a99368f6c64b36 (diff) |
udev: hwdb - update usb class descriptions
Diffstat (limited to 'hwdb/ids-update.pl')
-rwxr-xr-x | hwdb/ids-update.pl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/hwdb/ids-update.pl b/hwdb/ids-update.pl index 96db87d788..c96c95fd3b 100755 --- a/hwdb/ids-update.pl +++ b/hwdb/ids-update.pl @@ -55,10 +55,10 @@ sub usb_classes { $line =~ m/^C\ ([0-9a-f]{2})\s*(.*)$/; if (defined $1) { $class = uc $1; - my $text = $2; - if ($text =~ m/^(\?|None|Unused)$/) { + if ($class =~ m/^00$/) { next; } + my $text = $2; print(OUT "\n"); print(OUT "usb:v*p*d*dc" . $class . "*\n"); print(OUT " ID_USB_CLASS_FROM_DATABASE=" . $text . "\n"); @@ -74,6 +74,9 @@ sub usb_classes { $line =~ m/^\t([0-9a-f]{2})\s*(.*)$/; if (defined $1) { $subclass = uc $1; + if ($subclass =~ m/^00$/) { + next; + } my $text = $2; if ($text =~ m/^(\?|None|Unused)$/) { next; |