From 40723717042782953fc94985b1d63802259e77af Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Tue, 14 Apr 2009 12:59:13 +0000 Subject: current state of work on runlevel generator.. (still not fully useable) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2813 95ad53e4-c205-0410-b2fa-d234c58c8868 --- lib/OpenSLX/DistroUtils.pm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/OpenSLX/DistroUtils.pm') diff --git a/lib/OpenSLX/DistroUtils.pm b/lib/OpenSLX/DistroUtils.pm index 82c85bfa..dd29a46a 100644 --- a/lib/OpenSLX/DistroUtils.pm +++ b/lib/OpenSLX/DistroUtils.pm @@ -1,4 +1,4 @@ -# Copyright (c) 2008 - OpenSLX GmbH +# Copyright (c) 2008, 2009 - OpenSLX GmbH # # This program is free software distributed under the GPL version 2. # See http://openslx.org/COPYING @@ -54,10 +54,17 @@ sub simpleInitFile { sub getInitFileForDistro { my $initFile = shift; my $distroName = shift; + my $distro; my $engine = OpenSLX::DistroUtils::Engine->new(); - my $distro = $engine->loadDistro($distroName); + if ($distroName) { + $distro = $engine->loadDistro($distroName); + } else { + $distro = $engine->loadDistro('Base'); + } + + #return $distro->dumpInit($initFile); return $distro->generateInitFile($initFile); } -- cgit v1.2.3-55-g7522