Combine Arch and Gentoo PAM config
This commit is contained in:
parent
3ce919eedc
commit
c7f8878483
13
configure.ac
13
configure.ac
|
@ -76,16 +76,9 @@ AC_SEARCH_LIBS([ev_run], [ev], , [AC_MSG_FAILURE([cannot find the required ev_ru
|
|||
|
||||
AC_SEARCH_LIBS([shm_open], [rt])
|
||||
|
||||
# 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-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-local-login instead of login on Gentoo
|
||||
if [[ -f /etc/gentoo-release ]]; then
|
||||
echo "Using PAM for Gentoo"
|
||||
# Use system-local-login instead of login on Arch and Gentoo
|
||||
if [[ -f /etc/arch-release ]] || [[ -f /etc/gentoo-release ]]; then
|
||||
echo "Using PAM for Arch/Gentoo"
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue