summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mandriva.org>2010-09-03 07:26:01 +0000
committerAnssi Hannula <anssi@mandriva.org>2010-09-03 07:26:01 +0000
commitc8b6cb328a02edc92d9a8ba3acce7b7ed1219dc7 (patch)
tree9203904237407a91e76732069a85be86255b8d93
parent3909a90f59d1f8efd33ade1c2b08338dd27b3728 (diff)
downloadldetect-lst-c8b6cb328a02edc92d9a8ba3acce7b7ed1219dc7.tar
ldetect-lst-c8b6cb328a02edc92d9a8ba3acce7b7ed1219dc7.tar.gz
ldetect-lst-c8b6cb328a02edc92d9a8ba3acce7b7ed1219dc7.tar.bz2
ldetect-lst-c8b6cb328a02edc92d9a8ba3acce7b7ed1219dc7.tar.xz
ldetect-lst-c8b6cb328a02edc92d9a8ba3acce7b7ed1219dc7.zip
merge2pcitable: allow overriding new nvidia_readme card assignments
by an environment variable
-rwxr-xr-xconvert/merge2pcitable.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/convert/merge2pcitable.pl b/convert/merge2pcitable.pl
index 067ec4e2..6837f317 100755
--- a/convert/merge2pcitable.pl
+++ b/convert/merge2pcitable.pl
@@ -413,6 +413,7 @@ sub read_nvidia_readme {
my ($f) = @_;
my %drivers;
my $section;
+ my $card = $ENV{NVIDIA_CARD} ? $ENV{NVIDIA_CARD} : "NVIDIA_UNKNOWN";
foreach (cat_($f)) {
chomp;
last if $section > 3;
@@ -429,7 +430,7 @@ sub read_nvidia_readme {
my ($description, $id, $subid) = /^\s+(.+?)\s+0x(....)(?: 0x(....))?/;
$id = "10de" . lc($id);
$subid = $subid ? "10de" . lc($subid) : "ffffffff";
- $drivers{$id . $subid} = [ 'Card:NVIDIA_UNKNOWN', $description ];
+ $drivers{$id . $subid} = [ "Card:$card", $description ];
}
\%drivers;
}