blob: b181704df34e6c284fa7a97e4938d9b8932d528b (
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 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;
|