display-manager-autologin.sh: configure sddm autologin for kde live iso.

This commit is contained in:
Unknown 2018-08-02 01:26:16 +03:00 committed by Michael Aldridge
parent 7801df642b
commit c70eb89d6b

View File

@ -21,6 +21,16 @@ if [ -d ${NEWROOT}/etc/gdm ]; then
fi
fi
# Configure sddm autologin for the kde iso.
if [ -r ${NEWROOT}/etc/sddm.conf ]; then
mv ${NEWROOT}/etc/sddm.conf ${NEWROOT}/etc/sddm.conf.old
cat > ${NEWROOT}/etc/sddm.conf <<_EOF
[Autologin]
User=anon
Session=plasma.desktop
_EOF
fi
# Configure lightdm autologin.
if [ -r ${NEWROOT}/etc/lightdm.conf ]; then
sed -i -e "s|^\#\(default-user=\).*|\1$USERNAME|" \