diff options
author | Maxim Devaev <[email protected]> | 2022-04-01 07:50:20 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-04-01 07:50:20 +0300 |
commit | 5108f784d96932f9a76dc3fbd9b7eca662474e8a (patch) | |
tree | 6278a22d88018c3cece48ecc0069c1b38b65d8f7 | |
parent | 7ba7f08be7dc221e664d37fb3926866b64619f17 (diff) |
disable pam_systemd* modules
-rw-r--r-- | kvmd.install | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kvmd.install b/kvmd.install index 9eafd364..46d9e96a 100644 --- a/kvmd.install +++ b/kvmd.install @@ -43,6 +43,8 @@ post_upgrade() { [ ! -f /boot/config.txt ] || sed -i -e 's/^dtoverlay=pi3-disable-bt$/dtoverlay=disable-bt/g' /boot/config.txt [ ! -f /boot/config.txt ] || sed -i -e 's/^dtoverlay=dwc2$/dtoverlay=dwc2,dr_mode=peripheral/g' /boot/config.txt [ ! -f /etc/conf.d/rngd ] || (echo 'RNGD_OPTS="-o /dev/random -r /dev/hwrng -x jitter -x pkcs11 -x rtlsdr"' > /etc/conf.d/rngd) + [ ! -f /etc/pam.d/system-login ] || sed -e '/\<pam_systemd\.so\>/ s/^#*/#/' /etc/pam.d/system-login + [ ! -f /etc/pam.d/system-auth ] || sed -e '/\<pam_systemd_home\.so\>/ s/^#*/#/' /etc/pam.d/system-auth # Some update deletes /etc/motd, WTF [ ! -f /etc/motd -a -f /etc/motd.pacsave ] && mv /etc/motd.pacsave /etc/motd || true |