summaryrefslogtreecommitdiffstats
path: root/convert/verify_Cards.pl
blob: d2cab0b92bd40487ddcad6492d9d16f3666df1d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl

use lib qw(/usr/lib/libDrakX);
use Xconfig;
require './merge2pcitable.pl';

$cards = Xconfig::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;