Skip to content

Commit

Permalink
Update Linux regex for detecting lspci PCI subsystem IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
juge2 committed Feb 28, 2019
1 parent 249e4d1 commit dcb7fe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/FusionInventory/Agent/Tools/Generic.pm
Expand Up @@ -233,8 +233,8 @@ sub getPCIDevices {
undef $controller;
} elsif ($line =~ /^\tKernel driver in use: (\w+)/) {
$controller->{DRIVER} = $1;
} elsif ($line =~ /^\tSubsystem: ?(.*) \[?([a-f\d]{4}:[a-f\d]{4})\]?/) {
$controller->{PCISUBSYSTEMID} = $2;
} elsif ($line =~ /^\tSubsystem: ?.* \[?([a-f\d]{4}:[a-f\d]{4})\]?/) {
$controller->{PCISUBSYSTEMID} = $1;
}
}

Expand Down

0 comments on commit dcb7fe0

Please sign in to comment.