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

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

Copyt trusty code

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