commit b4b985ab27e3dabf06cbe5dc5beeea0169808bc0 parent 0a588d8d5d2ec33209bc1e0ad7789b3e0464f435 Author: Raymond Li <hi@raymond.li> Date: Fri, 8 Jan 2021 20:49:04 -0500 Fix PAM for Gentoo Diffstat:
| M | configure.ac | | | 11 | +++++++++-- |
1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac @@ -77,9 +77,16 @@ 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 (TODO: Implement Gentoo as well) +# Use system-auth instead of login on Arch 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 login/#auth include login/g" ../pam/i3lock +fi + +# Use system-auth instead of login on Gentoo +if [[ -f /etc/arch-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 login/#auth include login/g" ../pam/i3lock fi
