summaryrefslogtreecommitdiffstats
path: root/utils/trimpcitable
blob: c2cbe425e434d51b727eff4df921c787e1d6631e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/perl

foreach $n (@ARGV) {
    $n =~ s/\.ko$//;
    $mods{"\"$n\""} = $n;
}

while (<STDIN>) {
    chop;
    @a = split;
    if ($mods{$a[2]} || $mods{$a[4]}) {
	print "$_\n";
    } elsif ($_ =~ /Card:Intel.*81[05]/) {
	print "$_\n";
    } elsif ($a[4] =~ /\"ignore\"/) {
	print "$_\n";
    } elsif ($a[4] =~ /\"unknown\"/) {
	print "$_\n";
    }

}