diff options
Diffstat (limited to 'convert/verify_Cards.pl')
-rwxr-xr-x | convert/verify_Cards.pl | 22 |
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; |