summaryrefslogtreecommitdiffstats
path: root/convert/merge2pcitable.pl
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-17 21:41:45 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-17 21:41:45 +0000
commit05fe34612e4f9c5a3371c654fd0854840cf3096b (patch)
treee9635052fe25c9ad6ba4f0813f4f3759bc01eb9b /convert/merge2pcitable.pl
parent8c18df9b909bb219ce4c54fe53c27fd873255b24 (diff)
downloadldetect-lst-05fe34612e4f9c5a3371c654fd0854840cf3096b.tar
ldetect-lst-05fe34612e4f9c5a3371c654fd0854840cf3096b.tar.gz
ldetect-lst-05fe34612e4f9c5a3371c654fd0854840cf3096b.tar.bz2
ldetect-lst-05fe34612e4f9c5a3371c654fd0854840cf3096b.tar.xz
ldetect-lst-05fe34612e4f9c5a3371c654fd0854840cf3096b.zip
special option for watching subids, but beware of it!
Diffstat (limited to 'convert/merge2pcitable.pl')
-rwxr-xr-xconvert/merge2pcitable.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/convert/merge2pcitable.pl b/convert/merge2pcitable.pl
index ef96b111..06e00afa 100755
--- a/convert/merge2pcitable.pl
+++ b/convert/merge2pcitable.pl
@@ -12,6 +12,7 @@ if ($0 =~ /merge2pcitable/)
{
$ARGV[0] eq '-f' and $force = shift;
$ARGV[0] eq '-a' and $all = shift;
+ $ARGV[0] eq '--keep-subids' and $keep_subids = shift;
my $formats = join '|', grep {$_} map { /^read_(.*)/ ? $1 : '' } keys %main::;
@@ -23,7 +24,7 @@ if ($0 =~ /merge2pcitable/)
my $d_pci = read_pcitable($pcitable, 'strict');
my $d_in = $read->($in);
merge($d_pci, $d_in);
- cleanup_subids($d_pci);
+ cleanup_subids($d_pci) if !$keep_subids;
write_pcitable($d_pci);
} else { 1 }