summaryrefslogtreecommitdiff
path: root/kvmd.install
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd.install')
-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