Skip to content

Commit

Permalink
Correcting kdm live-autologin handling to not always append entries f…
Browse files Browse the repository at this point in the history
…orever when using persistency.
  • Loading branch information
daniel-baumann committed Mar 26, 2009
1 parent 16c6436 commit 8bac4e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/live-bottom/14locales
Expand Up @@ -104,7 +104,10 @@ then

if [ -d /root/etc/default/kdm.d/ ]
then
printf 'LANGUAGE=%s\n' "${LANG}" >> /root/etc/default/kdm.d/live-autologin
if ! grep -qs "^LANGUAGE" "${LANG}"
then
printf 'LANGUAGE=%s\n' "${LANG}" >> /root/etc/default/kdm.d/live-autologin
fi
elif [ -f /root/etc/kde3/kdm/kdmrc ]
then
sed -i -r -e "s/#Language=.*/Language=${language}/" \
Expand Down
4 changes: 4 additions & 0 deletions scripts/live-bottom/15autologin
Expand Up @@ -59,13 +59,17 @@ fi

if [ -d /root/etc/default/kdm.d/ ]
then
if ! grep -qs "^AUTOLOGIN" /root/etc/default/kdm.d/live-autologin
then

cat >> /root/etc/default/kdm.d/live-autologin << EOF
AUTOLOGINUSER=${USERNAME}
AUTOLOGINAGAIN=true
AUTOLOGINDELAY=0
EOF

fi

elif [ -f /root/etc/kde3/kdm/kdmrc ]
then
# Configure KDM autologin
Expand Down

0 comments on commit 8bac4e8

Please sign in to comment.