From c7a58fb6512d763d8c6348923b4f223b7b25b956 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 4 May 2011 02:24:17 +0200 Subject: [PATCH] mambawelcome: added support for lxdm --- mambawelcome/mambawelcome.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mambawelcome/mambawelcome.sh b/mambawelcome/mambawelcome.sh index 3adc4d2..fb30af9 100755 --- a/mambawelcome/mambawelcome.sh +++ b/mambawelcome/mambawelcome.sh @@ -87,10 +87,17 @@ echo $"Configuring users and host" | tee -a $LOG_FILE sed -i "s|AutoLoginUser=.*|AutoLoginUser=$INSTALL_USER|" \ /opt/kde/share/config/kdm/kdmrc } + [ -e /etc/lxdm/lxdm.conf ] && { + sed -i "s|[#[:space:]]*autologin=.*|autologin=$INSTALL_USER|" \ + /etc/lxdm/lxdm.conf + } } || { [ -e /opt/kde/share/config/kdm/kdmrc ] && sed -i "s|AutoLoginEnable=.*|AutoLoginEnable=false|" \ /opt/kde/share/config/kdm/kdmrc + [ -e /etc/lxdm/lxdm.conf ] && { + sed -i "s|[#[:space:]]*\(autologin.*\)|#\1|" \ + /etc/lxdm/lxdm.conf } # pre-create user homedir (currently just needed to put TODO txt files on