mambawelcome: add gdm support
This commit is contained in:
parent
87dc0cd264
commit
fd23b1d464
@ -91,6 +91,12 @@ echo $"Configuring users and host" | tee -a $LOG_FILE
|
|||||||
sed -i "s|[#[:space:]]*autologin=.*|autologin=$INSTALL_USER|" \
|
sed -i "s|[#[:space:]]*autologin=.*|autologin=$INSTALL_USER|" \
|
||||||
/etc/lxdm/lxdm.conf
|
/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 ] &&
|
[ -e /opt/kde/share/config/kdm/kdmrc ] &&
|
||||||
sed -i "s|AutoLoginEnable=.*|AutoLoginEnable=false|" \
|
sed -i "s|AutoLoginEnable=.*|AutoLoginEnable=false|" \
|
||||||
@ -98,6 +104,9 @@ echo $"Configuring users and host" | tee -a $LOG_FILE
|
|||||||
[ -e /etc/lxdm/lxdm.conf ] && {
|
[ -e /etc/lxdm/lxdm.conf ] && {
|
||||||
sed -i "s|[#[:space:]]*\(autologin.*\)|#\1|" \
|
sed -i "s|[#[:space:]]*\(autologin.*\)|#\1|" \
|
||||||
/etc/lxdm/lxdm.conf
|
/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
|
# pre-create user homedir (currently just needed to put TODO txt files on
|
||||||
|
Loading…
Reference in New Issue
Block a user