display-manager-autologin.sh: remove kdm autologin configuration

This commit is contained in:
mobinmob 2018-06-28 22:22:44 +03:00 committed by Michael Aldridge
parent 0637090fa5
commit 4f68da9ac8

View File

@ -21,12 +21,6 @@ if [ -d ${NEWROOT}/etc/gdm ]; then
fi
fi
# Configure KDM autologin
if [ -e ${NEWROOT}/etc/kdm/kdmrc ]; then
sed -i -e "s|^\#\(AutoLoginEnable=\).*|\1|" ${NEWROOT}/etc/kdm/kdmrc
sed -i -e "s|^\#\(AutoLoginUser=\).*|\1$USERNAME|" ${NEWROOT}/etc/kdm/kdmrc
fi
# Configure lightdm autologin.
if [ -r ${NEWROOT}/etc/lightdm.conf ]; then
sed -i -e "s|^\#\(default-user=\).*|\1$USERNAME|" \