Update display.sh

This commit is contained in:
Kroese 2024-02-02 18:13:21 +01:00 committed by GitHub
parent c43a3f76ce
commit 172acf75f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,17 +3,17 @@ set -Eeuo pipefail
# Docker environment variables
: "${VGA:="VGA"}" # Adaptor
: "${DISPLAY:="web"}" # Display
: "${DISPLAY:="web"}" # Display type
: "${VGA:="virtio-gpu"}" # VGA adaptor
case "${DISPLAY,,}" in
vnc)
DISPLAY_OPTS="-display vnc=:0 -device virto-gpu"
DISPLAY_OPTS="-display vnc=:0 -device $VGA"
;;
web)
DISPLAY_OPTS="-display vnc=:0,websocket=5700 -device virto-gpu"
DISPLAY_OPTS="-display vnc=:0,websocket=5700 -device $VGA"
;;
boot)
ramfb)
DISPLAY_OPTS="-display vnc=:0,websocket=5700 -device ramfb"
;;
none)