1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
package Sys::Info::Driver::Linux;
$Sys::Info::Driver::Linux::VERSION = '0.7908';
use strict;
use warnings;
use parent qw( Exporter );
our @EXPORT = qw( proc );
use constant proc => { ## no critic (NamingConventions::Capitalization)
loadavg => '/proc/loadavg', # average cpu load
cpuinfo => '/proc/cpuinfo', # cpu information
uptime => '/proc/uptime', # uptime file
version => '/proc/version', # os version
meminfo => '/proc/meminfo',
swaps => '/proc/swaps',
fstab => '/etc/fstab', # for filesystem type of the current disk
resolv => '/etc/resolv.conf',
timezone_old => '/etc/timezone',
timezone => '/etc/localtime',
issue => '/etc/issue',
};
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Sys::Info::Driver::Linux - Linux driver for Sys::Info
=head1 VERSION
version 0.7908
=head1 SYNOPSIS
use Sys::Info::Driver::Linux;
=head1 DESCRIPTION
This is the main module in the C<Linux> driver collection.
=head1 METHODS
None.
=head1 CONSTANTS
=head2 proc
Automatically exported. Includes paths to several files.
=head1 AUTHOR
Burak Gursoy
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2006 by Burak Gursoy.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
|