display-manager-autologin.sh: fix sddm detection

sddm doesn't ship with a /etc/sddm.conf as default so the old check
returned false.
This commit is contained in:
John Zimmermann 2019-02-17 11:25:15 +01:00 committed by Michael Aldridge
parent 6ce4732bbc
commit 9bcbbc95e0

View File

@ -22,8 +22,7 @@ if [ -d ${NEWROOT}/etc/gdm ]; then
fi fi
# Configure sddm autologin for the kde iso. # Configure sddm autologin for the kde iso.
if [ -r ${NEWROOT}/etc/sddm.conf ]; then if [ -x ${NEWROOT}/usr/bin/sddm ]; then
mv ${NEWROOT}/etc/sddm.conf ${NEWROOT}/etc/sddm.conf.old
cat > ${NEWROOT}/etc/sddm.conf <<_EOF cat > ${NEWROOT}/etc/sddm.conf <<_EOF
[Autologin] [Autologin]
User=anon User=anon