From 5962f489e0484a4991a9066bc19680811baa406a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 24 May 2015 07:36:42 +0200 Subject: dracut/display-manager-autologin.sh: enable kdm autologin. --- dracut/display-manager-autologin.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dracut/display-manager-autologin.sh b/dracut/display-manager-autologin.sh index f294d9b..9357c9d 100644 --- a/dracut/display-manager-autologin.sh +++ b/dracut/display-manager-autologin.sh @@ -21,6 +21,12 @@ 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|" \ -- cgit 1.4.1