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

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

Copyt trusty code

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