From fd23b1d464e0141916d85a6683334fe753608580 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 22 May 2011 18:38:19 +0200 Subject: [PATCH] mambawelcome: add gdm support --- mambawelcome/mambawelcome.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mambawelcome/mambawelcome.sh b/mambawelcome/mambawelcome.sh index a0a1d59..3b867f8 100755 --- a/mambawelcome/mambawelcome.sh +++ b/mambawelcome/mambawelcome.sh @@ -91,6 +91,12 @@ echo $"Configuring users and host" | tee -a $LOG_FILE sed -i "s|[#[:space:]]*autologin=.*|autologin=$INSTALL_USER|" \ /etc/lxdm/lxdm.conf } + [ -e /etc/gdm/custom.conf ] && { + sed -i "s|[#[:space:]]*AutomaticLogin=.*|AutomaticLogin=$INSTALL_USER|" \ + /etc/gdm/custom.conf + sed -i "s|AutomaticLoginEnable=.*|AutomaticLoginEnable=true|" \ + /etc/gdm/custom.conf + } } || { [ -e /opt/kde/share/config/kdm/kdmrc ] && sed -i "s|AutoLoginEnable=.*|AutoLoginEnable=false|" \ @@ -98,6 +104,9 @@ echo $"Configuring users and host" | tee -a $LOG_FILE [ -e /etc/lxdm/lxdm.conf ] && { sed -i "s|[#[:space:]]*\(autologin.*\)|#\1|" \ /etc/lxdm/lxdm.conf + [ -e /etc/gdm/custom.conf ] && + sed -i "s|AutomaticLoginEnable=.*|AutomaticLoginEnable=false|" \ + /etc/gdm/custom.conf } # pre-create user homedir (currently just needed to put TODO txt files on