Devel::AssertOS::Linux::v2_6 - Devel::AssertOS::Linux::v2_6 documentation


Devel-CheckOS documentation Contained in the Devel-CheckOS distribution.

Index


Code Index:

COPYRIGHT and LICENCE

Top


Devel-CheckOS documentation Contained in the Devel-CheckOS distribution.

# $Id: v2_6.pm,v 1.4 2008/11/05 22:52:35 drhyde Exp $

package Devel::AssertOS::Linux::v2_6;

use Devel::CheckOS;

$VERSION = '1.3';

sub os_is {
    Devel::CheckOS::os_is('Linux') &&
    `uname -r` =~ /^2\.6\./ ? 1 : 0;
}

sub expn { "The operating system has a Linux 2.6.x series kernel" }

Devel::CheckOS::die_unsupported() unless(os_is());

1;