mambawelcome.sh: fix autologin setting in *dm configuration

This commit is contained in:
Silvan Calarco 2011-06-01 12:51:11 +02:00
parent 8dc80b9cfb
commit c213d68810

View File

@ -79,7 +79,7 @@ echo $"Configuring users and host" | tee -a $LOG_FILE
} }
# configure user for autologin # configure user for autologin
[ "$INSTALL_USER_AUTOLOGIN" = "1" ] && { if [ "$INSTALL_USER_AUTOLOGIN" = "1" ]; then
echo $"Info: enabling user autologin" | tee -a $LOG_FILE echo $"Info: enabling user autologin" | tee -a $LOG_FILE
[ -e /opt/kde/share/config/kdm/kdmrc ] && { [ -e /opt/kde/share/config/kdm/kdmrc ] && {
sed -i "s|AutoLoginEnable=.*|AutoLoginEnable=true|" \ sed -i "s|AutoLoginEnable=.*|AutoLoginEnable=true|" \
@ -97,7 +97,7 @@ echo $"Configuring users and host" | tee -a $LOG_FILE
sed -i "s|AutomaticLoginEnable=.*|AutomaticLoginEnable=true|" \ sed -i "s|AutomaticLoginEnable=.*|AutomaticLoginEnable=true|" \
/etc/gdm/custom.conf /etc/gdm/custom.conf
} }
} || { else
[ -e /opt/kde/share/config/kdm/kdmrc ] && [ -e /opt/kde/share/config/kdm/kdmrc ] &&
sed -i "s|AutoLoginEnable=.*|AutoLoginEnable=false|" \ sed -i "s|AutoLoginEnable=.*|AutoLoginEnable=false|" \
/opt/kde/share/config/kdm/kdmrc /opt/kde/share/config/kdm/kdmrc
@ -107,7 +107,7 @@ echo $"Configuring users and host" | tee -a $LOG_FILE
[ -e /etc/gdm/custom.conf ] && [ -e /etc/gdm/custom.conf ] &&
sed -i "s|AutomaticLoginEnable=.*|AutomaticLoginEnable=false|" \ sed -i "s|AutomaticLoginEnable=.*|AutomaticLoginEnable=false|" \
/etc/gdm/custom.conf /etc/gdm/custom.conf
} fi
# pre-create user homedir (currently just needed to put TODO txt files on # pre-create user homedir (currently just needed to put TODO txt files on
# desktop) # desktop)