Update display.sh

This commit is contained in:
Kroese 2024-02-02 18:44:26 +01:00 committed by GitHub
parent 3b1e34a41e
commit 8f4eea252f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,6 +6,10 @@ set -Eeuo pipefail
: "${DISPLAY:="web"}" # Display type
: "${VGA:="virtio-gpu"}" # VGA adaptor
if [[ "${BOOT_MODE,,}" == "windows" ]]; then
[[ "$VGA"" == "virtio-gpu" ]] && VGA="VGA"
fi
case "${DISPLAY,,}" in
vnc)
DISPLAY_OPTS="-display vnc=:0 -device $VGA"