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 e2b2076 commit 249e4d1
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} = $1;
} elsif ($line =~ /^\tSubsystem: ?(.*) \[?([a-f\d]{4}:[a-f\d]{4})\]?/) {
$controller->{PCISUBSYSTEMID} = $2;
}
}

Expand Down

0 comments on commit 249e4d1

Please sign in to comment.