Unified · Split
| @@ -21,6 +21,16 @@ if [ -d ${NEWROOT}/etc/gdm ]; then · 20 unmodified lines | ||
| 21 | 21 | fi |
| 22 | 22 | fi |
| 23 | 23 | |
| 24 | +# Configure sddm autologin for the kde iso. | |
| 25 | +if [ -r ${NEWROOT}/etc/sddm.conf ]; then | |
| 26 | + mv ${NEWROOT}/etc/sddm.conf ${NEWROOT}/etc/sddm.conf.old | |
| 27 | + cat > ${NEWROOT}/etc/sddm.conf <<_EOF | |
| 28 | +[Autologin] | |
| 29 | +User=anon | |
| 30 | +Session=plasma.desktop | |
| 31 | +_EOF | |
| 32 | +fi | |
| 33 | + | |
| 24 | 34 | # Configure lightdm autologin. |
| 25 | 35 | if [ -r ${NEWROOT}/etc/lightdm.conf ]; then |
| 26 | 36 | sed -i -e "s|^\#\(default-user=\).*|\1$USERNAME|" \ |