summaryrefslogtreecommitdiffstats
path: root/lib/OpenSLX/DistroUtils.pm
diff options
context:
space:
mode:
authorBastian Wissler2009-06-05 20:17:40 +0200
committerBastian Wissler2009-06-05 20:17:40 +0200
commit6fb82427d4e3cb76e20700d8e0cfb609056ec2b9 (patch)
treec5bd7c32cd586e4ff482c27478d91d3906ea6c3f /lib/OpenSLX/DistroUtils.pm
parentFixing #450: (diff)
downloadcore-6fb82427d4e3cb76e20700d8e0cfb609056ec2b9.tar.gz
core-6fb82427d4e3cb76e20700d8e0cfb609056ec2b9.tar.xz
core-6fb82427d4e3cb76e20700d8e0cfb609056ec2b9.zip
Various changes to xserver plugin:
* added support for kernel version detection - yet from local function * now falls back to ati package installation, if download fails ATTENTION: If you have a recent Kernel Version in Suse-11.1, consider downgrading your Kernel to support fglrx-drivers from their RPM repository. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2937 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'lib/OpenSLX/DistroUtils.pm')
-rw-r--r--lib/OpenSLX/DistroUtils.pm22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/OpenSLX/DistroUtils.pm b/lib/OpenSLX/DistroUtils.pm
index dd29a46a..1bda311f 100644
--- a/lib/OpenSLX/DistroUtils.pm
+++ b/lib/OpenSLX/DistroUtils.pm
@@ -19,6 +19,8 @@ use warnings;
use OpenSLX::Utils;
use OpenSLX::Basics;
+use Data::Dumper;
+
use OpenSLX::DistroUtils::Engine;
use OpenSLX::DistroUtils::InitFile;
@@ -34,6 +36,7 @@ $VERSION = 1.01;
newInitFile
getInitFileForDistro
simpleInitFile
+ getKernelVersionForDistro
);
@@ -68,6 +71,25 @@ sub getInitFileForDistro {
return $distro->generateInitFile($initFile);
}
+sub getKernelVersionForDistro {
+ my $kernelPath = shift;
+ my $distroName = shift;
+
+
+ print Dumper(@INC);
+
+ my $engine = OpenSLX::DistroUtils::Engine->new();
+ my $distro;
+
+ if ($distroName) {
+ $distro = $engine->loadDistro($distroName);
+ } else {
+ $distro = $engine->loadDistro('Base');
+ }
+
+ return $distro->getKernelVersion($kernelPath);
+
+}