summaryrefslogtreecommitdiffstats
path: root/config-db
diff options
context:
space:
mode:
Diffstat (limited to 'config-db')
-rwxr-xr-xconfig-db/slxconfig16
1 files changed, 16 insertions, 0 deletions
diff --git a/config-db/slxconfig b/config-db/slxconfig
index 597c87b7..dd6dfdab 100755
--- a/config-db/slxconfig
+++ b/config-db/slxconfig
@@ -355,6 +355,22 @@ sub addSystemToConfigDB
die _tr("the system '%s' already exists in the DB, giving up!\n",
$systemName);
}
+
+ if ($systemName =~ m[\bkde\b]) {
+ # activate kdm and X if system is based on kde:
+ $systemData->{attr_start_xdmcp} = 'kdm'
+ unless exists $systemData->{attr_start_xdmcp};
+ $systemData->{attr_start_x} = 'yes'
+ unless exists $systemData->{attr_start_x};
+ }
+ if ($systemName =~ m[\bgnome\b]) {
+ # activate gdm and X if system is based on GNOME:
+ $systemData->{attr_start_xdmcp} = 'gdm'
+ unless exists $systemData->{attr_start_xdmcp};
+ $systemData->{attr_start_x} = 'yes'
+ unless exists $systemData->{attr_start_x};
+ }
+
my $systemID = $openslxDB->addSystem([$systemData]);
vlog 0, _tr("system '%s' has been successfully added to DB (ID=%s)\n",
$systemName, $systemID);