SHA256
1
0
forked from pool/gdm
OBS User unknown
2007-09-06 19:50:10 +00:00
committed by Git OBS Bridge
parent f2ff714bfd
commit 5010bfe5cd
4 changed files with 47 additions and 12 deletions

View File

@@ -316,17 +316,10 @@ BEGIN {
'
# Password-less login is implemented by PAM. Do the required change.
if [ "$DISPLAYMANAGER_PASSWORD_LESS_LOGIN" = "yes" ] ; then
sed 's/^\(auth[[:space:]][[:space:]]*\)include[[:space:]]\([[:space:]]*\)common-auth/\1required\2pam_permit.so/' <$r/etc/pam.d/gdm-autologin >$r/etc/pam.d/gdm-autologin.new
sed 's/^\(auth[[:space:]][[:space:]]*\)include[[:space:]]\([[:space:]]*\)common-auth/\1required\2pam_permit.so/' <$r/etc/pam.d/gdm >$r/etc/pam.d/gdm.new
else
sed 's/^\(auth[[:space:]][[:space:]]*\)required\([[:space:]][[:space:]]*\)pam_permit\.so/\1include \2common-auth/' <$r/etc/pam.d/gdm-autologin >$r/etc/pam.d/gdm-autologin.new
sed 's/^\(auth[[:space:]][[:space:]]*\)required\([[:space:]][[:space:]]*\)pam_permit\.so/\1include \2common-auth/' <$r/etc/pam.d/gdm >$r/etc/pam.d/gdm.new
fi
if cmp -s $r/etc/pam.d/gdm-autologin $r/etc/pam.d/gdm-autologin.new ; then
rm $r/etc/pam.d/gdm-autologin.new
else
mv $r/etc/pam.d/gdm-autologin.new $r/etc/pam.d/gdm-autologin
fi
if cmp -s $r/etc/pam.d/gdm $r/etc/pam.d/gdm.new ; then
rm $r/etc/pam.d/gdm.new
else