summaryrefslogtreecommitdiffstats
path: root/convert/verify_Cards.pl
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-12-18 13:08:29 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-12-18 13:08:29 +0000
commit68ef254ec0d874d2284a33f990be51baddb92488 (patch)
treeea2e7dd29a5eec351ef7d38a96014c821c55acdc /convert/verify_Cards.pl
parent6b5d37090668c9337c3e95135e3ff80441349313 (diff)
downloadldetect-lst-68ef254ec0d874d2284a33f990be51baddb92488.tar
ldetect-lst-68ef254ec0d874d2284a33f990be51baddb92488.tar.gz
ldetect-lst-68ef254ec0d874d2284a33f990be51baddb92488.tar.bz2
ldetect-lst-68ef254ec0d874d2284a33f990be51baddb92488.tar.xz
ldetect-lst-68ef254ec0d874d2284a33f990be51baddb92488.zip
add verif
Diffstat (limited to 'convert/verify_Cards.pl')
-rwxr-xr-xconvert/verify_Cards.pl22
1 files changed, 22 insertions, 0 deletions
diff --git a/convert/verify_Cards.pl b/convert/verify_Cards.pl
new file mode 100755
index 00000000..b181704d
--- /dev/null
+++ b/convert/verify_Cards.pl
@@ -0,0 +1,22 @@
+#!/usr/bin/perl
+
+use lib qw(/usr/lib/libDrakX);
+use Xconfigurator;
+require './merge2pcitable.pl';
+
+$cards = Xconfigurator::readCardsDB("../lst/Cards+");
+
+@cards = map {
+ my $drivers = read_pcitable("../lst/$_");
+ map { /^Card:(.*)/ } grep { /^Card/ } map { $_->[0] } values %$drivers;
+} qw(pcitable usbtable);
+
+foreach (@cards) {
+ $nb++;
+ if (!$cards->{$_}) {
+ print STDERR "unknown card: $_\n";
+ $bad++;
+ }
+}
+
+exit $bad;