diff options
Diffstat (limited to 'boot-env/OpenSLX/MakeInitRamFS/Engine')
-rw-r--r-- | boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm b/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm index ca4764ca..cac92b37 100644 --- a/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm +++ b/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm @@ -383,13 +383,21 @@ sub _writeSlxSystemConf # 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"; - + my $defaultConfVer = slurpFile("$defaultDirConfig"); + my $actConfVer = "Version 0.2"; + if (-r $defaultDirConfig) { $self->addCMD("cp -p $defaultDirConfig $configTargetPath/"); + if ($defaultConfVer =~ m{$actConfVer}) { + warn _tr( + "Your version of default dir file (openslx.conf) is to old!\n". + "Eventually the system won't work.\n" . + "Please run install, update or clone of this system again!\n"); + } } else { die _tr( - "No default directories defined!\n" . - "Please run install, update or clone of this system again!\n"); + "No default directories defined!\n" . + "Please run install, update or clone of this system again!\n"); } return; |