summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-10-02 18:19:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-10-02 18:19:49 +0000
commit54e961ba88b4f6581e992423161175f61d0875f9 (patch)
tree7cf584aa7a4551adf92a5cce721f7d15c8259a26
parent2a284bdd2f31e50f453b777a6702368a56aa6a5e (diff)
downloadldetect-lst-54e961ba88b4f6581e992423161175f61d0875f9.tar
ldetect-lst-54e961ba88b4f6581e992423161175f61d0875f9.tar.gz
ldetect-lst-54e961ba88b4f6581e992423161175f61d0875f9.tar.bz2
ldetect-lst-54e961ba88b4f6581e992423161175f61d0875f9.tar.xz
ldetect-lst-54e961ba88b4f6581e992423161175f61d0875f9.zip
(read_pciids): lowercase ids
-rwxr-xr-xconvert/merge2pcitable.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/convert/merge2pcitable.pl b/convert/merge2pcitable.pl
index c1607abd..4c690877 100755
--- a/convert/merge2pcitable.pl
+++ b/convert/merge2pcitable.pl
@@ -116,12 +116,12 @@ sub read_pciids {
} elsif (my ($subid1, $subid2, $text) = /^\t\t(\S+)\s+(\S+)\s+(.*)/) {
$text =~ s/\t/ /g;
$id1 && $id2 or die "$f $line: unexpected device\n";
- $drivers{"$id1$id2$subid1$subid2"} = [ "unknown", "$class|$text" ];
+ $drivers{lc "$id1$id2$subid1$subid2"} = [ "unknown", "$class|$text" ];
} elsif (/^\t(\S+)\s+(.*)/) {
($id2, $text) = ($1, $2);
$text =~ s/\t/ /g;
$id1 && $id2 or die "$f $line: unexpected device\n";
- $drivers{"$id1${id2}ffffffff"} = [ "unknown", "$class|$text" ];
+ $drivers{lc "$id1${id2}ffffffff"} = [ "unknown", "$class|$text" ];
} elsif (/^(\S+)\s+(.*)/) {
$id1 = $1;
$class = $class{$2} || $2;