Use system-local-login for PAM on Arch/Gentoo

This commit is contained in:
Mohamad Safadieh 2021-02-14 04:33:48 -05:00
parent a318ff3d07
commit bbd5af2a7a
No known key found for this signature in database
GPG Key ID: 2F3FDF2EAE1E3C36
2 changed files with 5 additions and 5 deletions

View File

@ -77,17 +77,17 @@ AC_SEARCH_LIBS([ev_run], [ev], , [AC_MSG_FAILURE([cannot find the required ev_ru
AC_SEARCH_LIBS([shm_open], [rt])
# Use system-auth instead of login on Arch
# Use system-local-login instead of login on Arch
if [[ -f /etc/arch-release ]]; then
echo "Using PAM for Arch"
sed -i "s/^#auth include system-auth/auth include system-auth/g" ../pam/i3lock
sed -i "s/^#auth include system-local-login/auth include system-local-login/g" ../pam/i3lock
sed -i "s/^auth include login/#auth include login/g" ../pam/i3lock
fi
# Use system-auth instead of login on Gentoo
# Use system-local-login instead of login on Gentoo
if [[ -f /etc/gentoo-release ]]; then
echo "Using PAM for Gentoo"
sed -i "s/^#auth include system-auth/auth include system-auth/g" ../pam/i3lock
sed -i "s/^#auth include system-local-login/auth include system-local-login/g" ../pam/i3lock
sed -i "s/^auth include login/#auth include login/g" ../pam/i3lock
fi

View File

@ -4,5 +4,5 @@
# and 'login' for Debian. Note that vanilla i3lock upstream uses 'login' instead.
#
#auth include system-auth # For Arch/Gentoo
#auth include system-local-login # For Arch/Gentoo
auth include login # For Debian