source: ocsinventory-agent/trunk/fuentes/lib/Ocsinventory/Agent/Backend/OS/Generic/Lspci/Videos.pm @ 468

Last change on this file since 468 was 468, checked in by mabarracus, 4 years ago

Copyt trusty code

File size: 334 bytes
Line 
1package Ocsinventory::Agent::Backend::OS::Generic::Lspci::Videos;
2use strict;
3
4sub run {
5  my $params = shift;
6  my $common = $params->{common};
7
8  foreach(`lspci`){
9
10    if(/graphics|vga|video/i && /^\S+\s([^:]+):\s*(.+?)(?:\(([^()]+)\))?$/i){
11
12      $common->addVideo({
13          'CHIPSET'  => $1,
14          'NAME'     => $2,
15        });
16
17    }
18  }
19}
201
Note: See TracBrowser for help on using the repository browser.