mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
v4plus: config.txt for passthrough
This commit is contained in:
parent
8b7196671b
commit
a276aa76d6
@ -23,3 +23,7 @@ dtparam=i2c_arm=on
|
|||||||
|
|
||||||
# Clock
|
# Clock
|
||||||
dtoverlay=i2c-rtc,pcf8563,wakeup-source
|
dtoverlay=i2c-rtc,pcf8563,wakeup-source
|
||||||
|
|
||||||
|
# Passthrough
|
||||||
|
dtoverlay=vc4-kms-v3d
|
||||||
|
disable_overscan=1
|
||||||
|
|||||||
@ -83,6 +83,15 @@ post_upgrade() {
|
|||||||
keyboxd@etc-pacman.d-gnupg.socket
|
keyboxd@etc-pacman.d-gnupg.socket
|
||||||
fi
|
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
|
# Some update deletes /etc/motd, WTF
|
||||||
# shellcheck disable=SC2015,SC2166
|
# shellcheck disable=SC2015,SC2166
|
||||||
[ ! -f /etc/motd -a -f /etc/motd.pacsave ] && mv /etc/motd.pacsave /etc/motd || true
|
[ ! -f /etc/motd -a -f /etc/motd.pacsave ] && mv /etc/motd.pacsave /etc/motd || true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user