dracut/display-manager-autologin.sh: enable kdm autologin.
This commit is contained in:
parent
3845a5b429
commit
5962f489e0
@ -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|" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user