mirror of
https://github.com/Raymo111/i3lock-color.git
synced 2025-02-24 16:06:26 -05:00
Use system-local-login for PAM on Arch/Gentoo
This commit is contained in:
parent
a318ff3d07
commit
bbd5af2a7a
2 changed files with 5 additions and 5 deletions
|
@ -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])
|
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
|
if [[ -f /etc/arch-release ]]; then
|
||||||
echo "Using PAM for Arch"
|
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
|
sed -i "s/^auth include login/#auth include login/g" ../pam/i3lock
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use system-auth instead of login on Gentoo
|
# Use system-local-login instead of login on Gentoo
|
||||||
if [[ -f /etc/gentoo-release ]]; then
|
if [[ -f /etc/gentoo-release ]]; then
|
||||||
echo "Using PAM for Gentoo"
|
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
|
sed -i "s/^auth include login/#auth include login/g" ../pam/i3lock
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
# and 'login' for Debian. Note that vanilla i3lock upstream uses 'login' instead.
|
# 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
|
auth include login # For Debian
|
||||||
|
|
Loading…
Add table
Reference in a new issue