summaryrefslogtreecommitdiffstats
path: root/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm
diff options
context:
space:
mode:
authorMichael Janczyk2009-10-23 19:26:38 +0200
committerMichael Janczyk2009-10-23 19:26:38 +0200
commit71ecbe8e688b11dd3baf8dc1c41d3b355eac01c6 (patch)
tree7a67be8cbd836335409353bf1c6de05f7047f038 /boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm
parentmoving tested theming stuff to 5.0 (diff)
downloadcore-71ecbe8e688b11dd3baf8dc1c41d3b355eac01c6.tar.gz
core-71ecbe8e688b11dd3baf8dc1c41d3b355eac01c6.tar.xz
core-71ecbe8e688b11dd3baf8dc1c41d3b355eac01c6.zip
default directories introduced. please test and say what you think. examples see plugins vmware and vmchooser. can be simplyfied further (VIRTDIR, ETC...). /opt/openslx can bu user for plugins, ect as well (maybe PLUGINDIR?).
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3177 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm')
-rw-r--r--boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm b/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm
index 1fee62a8..d9af92dd 100644
--- a/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm
+++ b/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm
@@ -375,6 +375,18 @@ sub _writeSlxSystemConf
file => "$self->{'build-path'}/etc/slxsystem.conf",
content => $slxConf
} );
+
+ # check if default directories available and copy them to /etc
+ my $defaultDirConfig = "$self->{'root-path'}/etc/opt/openslx/openslx.conf";
+ my $configTargetPath = "$self->{'build-path'}/etc";
+
+ if (-r $defaultDirConfig) {
+ $self->addCMD("cp -p $defaultDirConfig $configTargetPath/");
+ } else {
+ die _tr(
+ "No default directories defined!\n" .
+ "Please run install, update or clone of this system again!\n");
+ }
return;
}