summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-03-17 12:42:35 +0200
committerMaxim Devaev <[email protected]>2024-03-17 12:42:35 +0200
commitba613928c70e8e258085e7b176f6a39a868dd043 (patch)
treee77412623a54b07a2e1a51539e9f1c2e67322e7f
parentb4d27ab1a98ed7650c7d45e17933cbcd3aac478c (diff)
masked gnupg services
-rw-r--r--kvmd.install12
1 files changed, 12 insertions, 0 deletions
diff --git a/kvmd.install b/kvmd.install
index b46f548f..a97b799d 100644
--- a/kvmd.install
+++ b/kvmd.install
@@ -67,10 +67,22 @@ post_upgrade() {
[ ! -f /etc/pam.d/system-auth ] || sed -i -e '/\<pam_systemd_home\.so\>/ s/^#*/#/' /etc/pam.d/system-auth
[ -e /etc/systemd/network/99-default.link ] || ln -s /dev/null /etc/systemd/network/99-default.link
fi
+
if [[ "$(vercmp "$2" 3.317)" -lt 0 ]]; then
[ ! -f /boot/config.txt ] || sed -i -e 's/^dtoverlay=i2c-rtc,pcf8563$/dtoverlay=i2c-rtc,pcf8563,wakeup-source/g' /boot/config.txt
fi
+ if [[ "$(vercmp "$2" 3.320)" -lt 0 ]]; then
+ # https://github.com/pikvm/pikvm/issues/1245
+ systemctl mask \
+ fi
+
# Some update deletes /etc/motd, WTF
# shellcheck disable=SC2015,SC2166
[ ! -f /etc/motd -a -f /etc/motd.pacsave ] && mv /etc/motd.pacsave /etc/motd || true