Update display.sh

This commit is contained in:
Kroese 2024-06-12 04:37:24 +02:00 committed by GitHub
parent e04facea53
commit 6ee5b0fc67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,9 +3,15 @@ set -Eeuo pipefail
# Docker environment variables
: "${VGA:="ramfb"}" # VGA adaptor
: "${VGA:=""}" # VGA adaptor
: "${DISPLAY:="web"}" # Display type
if [[ "${BOOT_MODE:-}" != "windows" ]]; then
[ -z "$VGA" ] && VGA="virtio-gpu"
else
[ -z "$VGA" ] && VGA="ramfb"
fi
case "${DISPLAY,,}" in
vnc)
DISPLAY_OPTS="-display vnc=:0 -device $VGA"