From 9682234109be62c3e6109d9acec8e784eb9f1caa Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 20 Dec 2024 06:31:01 +0100 Subject: [PATCH] fix: Display fallback --- src/display.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/display.sh b/src/display.sh index 2f42c40..c1c8a08 100644 --- a/src/display.sh +++ b/src/display.sh @@ -6,11 +6,13 @@ set -Eeuo pipefail : "${VGA:="ramfb"}" # VGA adaptor : "${DISPLAY:="web"}" # Display type +[[ "$DISPLAY" == ":0" ]] && DISPLAY="web" + case "${DISPLAY,,}" in "vnc" ) DISPLAY_OPTS="-display vnc=:0 -device $VGA" ;; - "web" | ":0" ) + "web" ) DISPLAY_OPTS="-display vnc=:0,websocket=5700 -device $VGA" ;; "ramfb" )