[util-livecd] change AutomaticLogin username based on conf file also for gdm

This commit is contained in:
Philip 2015-03-21 22:50:13 +01:00 committed by Ramon Buldó
parent 67e32fab5b
commit 901941d2d5

View file

@ -431,5 +431,7 @@ configure_displaymanager(){
sed -i -e "s|^User=.*|User=${username}|" /etc/sddm.conf sed -i -e "s|^User=.*|User=${username}|" /etc/sddm.conf
elif [[ -f /usr/bin/lxdm ]];then elif [[ -f /usr/bin/lxdm ]];then
sed -i -e "s/^.*autologin=.*/autologin=${username}/" /etc/lxdm/lxdm.conf sed -i -e "s/^.*autologin=.*/autologin=${username}/" /etc/lxdm/lxdm.conf
elif [[ -f /usr/bin/gdm ]];then
sed -i -e "s/^.*AutomaticLogin=.*/AutomaticLogin=${username}/" /etc/gdm/custom.conf
fi fi
} }