mambawelcome: added support for lxdm

This commit is contained in:
Silvan Calarco 2011-05-04 02:24:17 +02:00
parent 96d2ce9d84
commit c7a58fb651

View File

@ -87,10 +87,17 @@ echo $"Configuring users and host" | tee -a $LOG_FILE
sed -i "s|AutoLoginUser=.*|AutoLoginUser=$INSTALL_USER|" \ sed -i "s|AutoLoginUser=.*|AutoLoginUser=$INSTALL_USER|" \
/opt/kde/share/config/kdm/kdmrc /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 ] && [ -e /opt/kde/share/config/kdm/kdmrc ] &&
sed -i "s|AutoLoginEnable=.*|AutoLoginEnable=false|" \ sed -i "s|AutoLoginEnable=.*|AutoLoginEnable=false|" \
/opt/kde/share/config/kdm/kdmrc /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 # pre-create user homedir (currently just needed to put TODO txt files on