live-iso-kde/hooks/5-add-autologin.chroot

9 lines
394 B
Plaintext
Raw Normal View History

2024-08-03 00:45:59 +02:00
#!/bin/bash
mkdir -p /etc/gdm3 || true
mkdir -p /etc/sddm.conf.d/ || true
2024-08-11 23:27:55 +02:00
echo -e '[daemon]\nAutomaticLogin=pikaos\nAutomaticLoginEnable=True' >> /etc/gdm3/daemon.conf || true
2024-08-11 23:30:23 +02:00
sed '/WaylandEnable=false/ s/^\#*/\#/' -i /etc/gdm3/daemon.conf || true
2024-08-11 23:27:55 +02:00
ln -sf /etc/gdm3/daemon.conf /etc/gdm3/custom.conf
2024-08-03 00:45:59 +02:00
echo -e '[Autologin]\nUser=pikaos\nSession=plasma' > /etc/sddm.conf.d/zautologin.conf || true