wok view ocsinventory-agent/stuff/Slitaz.pm @ rev 3777
Add: python-beaker python-mako python-nose python-pylons python-routes python-tempita python-weberror python-webob python-webhelpers python-webtest
author | Julien Rabier <taziden@slitaz.org> |
---|---|
date | Thu Jul 30 16:35:54 2009 +0200 (2009-07-30) |
parents | |
children |
line source
1 package Ocsinventory::Agent::Backend::OS::Linux::Distro::NonLSB::Slitaz;
2 use strict;
4 sub check {-f "/etc/slitaz-release"}
6 #####
7 sub findRelease {
8 my $v;
10 open V, "</etc/slitaz-release" or warn;
11 chomp ($v=<V>);
12 close V;
13 return "SliTaz GNU/Linux $v";
14 }
16 sub run {
17 my $params = shift;
18 my $inventory = $params->{inventory};
20 my $OSComment;
21 chomp($OSComment =`uname -v`);
23 $inventory->setHardware({
24 OSNAME => findRelease(),
25 OSCOMMENTS => "$OSComment"
26 });
27 }
29 1;