summaryrefslogtreecommitdiffstats
path: root/src/installer/slxos-setup
diff options
context:
space:
mode:
Diffstat (limited to 'src/installer/slxos-setup')
-rwxr-xr-xsrc/installer/slxos-setup13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/installer/slxos-setup b/src/installer/slxos-setup
index 30c9287b..acfb3b8d 100755
--- a/src/installer/slxos-setup
+++ b/src/installer/slxos-setup
@@ -131,6 +131,18 @@ if ($action =~ m[^import]i) {
or die _tr("can't chdir to script-path <%> (%s)", $FindBin::RealBin, $!);
$engine->initialize($vendorOSName, 'clone');
$engine->cloneVendorOS($source);
+} elsif ($action =~ m[^config]i) {
+ my $vendorOSName = shift @ARGV;
+ if (!defined $vendorOSName) {
+ print STDERR _tr("You need to specify exactly one vendor-OS-name!\n");
+ pod2usage(2);
+ }
+ # we chdir into the script's folder such that all relative paths have
+ # a known starting point:
+ chdir($FindBin::RealBin)
+ or die _tr("can't chdir to script-path <%> (%s)", $FindBin::RealBin, $!);
+ $engine->initialize($vendorOSName, 'config');
+ $engine->configVendorOS();
} elsif ($action =~ m[^remove]i) {
my $vendorOSName = shift @ARGV;
if (!defined $vendorOSName) {
@@ -178,6 +190,7 @@ if ($action =~ m[^import]i) {
sort glob("$openslxConfig{'private-path'}/stage1/*")
);
} else {
+# config # don't brag about it, yet.
vlog(0, _tr(unshiftHereDoc(<<' END-OF-HERE'), $0));
You need to specify exactly one action:
clone