diff options
author | Sebastian Schmelzer | 2009-04-14 14:59:13 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2009-04-14 14:59:13 +0200 |
commit | 40723717042782953fc94985b1d63802259e77af (patch) | |
tree | 9c82e356ea7b59c81f94b4712cbe4f1ba38e8b88 /lib/OpenSLX/DistroUtils.pm | |
parent | Removed non-uclibc busyboxes as no longer needed (hopefully :)) (diff) | |
download | core-40723717042782953fc94985b1d63802259e77af.tar.gz core-40723717042782953fc94985b1d63802259e77af.tar.xz core-40723717042782953fc94985b1d63802259e77af.zip |
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
Diffstat (limited to 'lib/OpenSLX/DistroUtils.pm')
-rw-r--r-- | lib/OpenSLX/DistroUtils.pm | 11 |
1 files changed, 9 insertions, 2 deletions
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); } |