pkgsrc/net/ocsinventory-agent/patches/patch-ag
bouyer 3f5015ac97 Import ocsinventory-agent 1.1.2 to pkgsrc.
Open Computer and Software Inventory Next Generation is an application
designed to help a network or system administrator keep track of the
computers configuration and software that are installed on the network.
Information about Hardware and Operating System are collected.
2009-08-16 18:25:53 +00:00

26 lines
653 B
Text

$NetBSD: patch-ag,v 1.1.1.1 2009/08/16 18:25:53 bouyer Exp $
--- /dev/null 2009-06-25 18:52:46.000000000 +0200
+++ ./lib/Ocsinventory/Agent/Backend/OS/BSD/Pcictl/Videos.pm 2009-06-25 18:50:37.000000000 +0200
@@ -0,0 +1,21 @@
+package Ocsinventory::Agent::Backend::OS::BSD::Pcictl::Videos;
+use strict;
+use Ocsinventory::Agent::Backend::OS::BSD::Pcictl::Pcictl;
+
+sub run {
+ my $params = shift;
+ my $inventory = $params->{inventory};
+
+ foreach (runpcictl()) {
+
+ if(/graphics|vga|video|display/i && /^\S+:\s(.+)\s\(([^,]+)(,.+)?\)$/i) {
+
+ $inventory->addVideos({
+ 'CHIPSET' => $1,
+ 'NAME' => $2,
+ });
+
+ }
+ }
+}
+1