[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
parent d3b4806071
commit 739e6f6808

View file

@ -436,5 +436,7 @@ configure_displaymanager(){
sed -i -e "s|^User=.*|User=${username}|" /etc/sddm.conf
elif [[ -f /usr/bin/lxdm ]];then
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
}