summaryrefslogtreecommitdiff
path: root/pcr/elogind/elogind.install
blob: 004f98a2b5b09fada49a108cc18f32580273203a (plain)
1
2
3
4
5
6
7
8
9
10
11
post_install() {
    sed -e 's|pam_systemd.so|pam_elogind.so|' -i etc/pam.d/system-login

    if grep pam_ck_connector.so etc/pam.d/system-login >/dev/null;then
        sed -e 's|pam_ck_connector.so nox11|pam_elogind.so|' -i etc/pam.d/system-login
    fi
}

post_remove(){
    sed -e 's|pam_elogind.so|pam_systemd.so|' -i etc/pam.d/system-login
}