summaryrefslogtreecommitdiff
path: root/kvmd.install
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd.install')
-rw-r--r--kvmd.install9
1 files changed, 9 insertions, 0 deletions
diff --git a/kvmd.install b/kvmd.install
index a97b799d..e57d03c7 100644
--- a/kvmd.install
+++ b/kvmd.install
@@ -83,6 +83,15 @@ post_upgrade() {
fi
+ if [[ "$(varcmp "$2" 3.331)" -lt 0 ]]; then
+ grep -q "^dtoverlay=vc4-kms-v3d" /boot/config.txt || cat << EOF >> /boot/config.txt
+
+# Passthrough
+dtoverlay=vc4-kms-v3d
+disable_overscan=1
+EOF
+ 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