From 172acf75f9cf8d0cd5e0f9b1434e577bac5bf46f Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 2 Feb 2024 18:13:21 +0100 Subject: [PATCH] Update display.sh --- src/display.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/display.sh b/src/display.sh index 36cf4af..05f6d1a 100644 --- a/src/display.sh +++ b/src/display.sh @@ -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)