diff options
author | Maxim Devaev <[email protected]> | 2024-04-06 23:51:41 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-07-19 15:25:13 +0300 |
commit | 142c4a3552d443bca1a491d1b17d53e2b126ea91 (patch) | |
tree | cbc9696856db3ae1c15aaa6dff05b88350c511dd /kvmd.install | |
parent | 56728d5007fa0a8ea0f45cdf9cb646db2a55599c (diff) |
v4plus: config.txt for passthrough
Diffstat (limited to 'kvmd.install')
-rw-r--r-- | kvmd.install | 9 |
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 |