source: ocsinventory-agent/trunk/fuentes/lib/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Mandriva.pm @ 468

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

Copyt trusty code

File size: 516 bytes
Line 
1package Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Mandriva;
2use strict;
3
4sub check {-f "/etc/mandrake-release" && -f "/etc/mandriva-release"}
5
6#####
7sub findRelease {
8  my $v;
9
10  open V, "</etc/mandriva-release" or warn;
11  chomp ($v=<V>);
12  close V;
13  return $v if $v;
14
15  0;
16}
17
18sub run {
19  my $params = shift;
20  my $common = $params->{common};
21
22  my $OSComment;
23  chomp($OSComment =`uname -v`);
24
25  $common->setHardware({ 
26      OSNAME => findRelease(),
27      OSCOMMENTS => "$OSComment"
28    });
29
30}
31
321;
Note: See TracBrowser for help on using the repository browser.