Update display.sh

This commit is contained in:
Kroese 2024-06-12 04:03:49 +02:00 committed by GitHub
parent 8609e097ea
commit a95dc2b9b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,15 +3,9 @@ set -Eeuo pipefail
# Docker environment variables
: "${VGA:=""}" # VGA adaptor
: "${VGA:="ramfb"}" # 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"