mambawelcome: added support for lxdm
This commit is contained in:
parent
96d2ce9d84
commit
c7a58fb651
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user