fix: Display fallback

This commit is contained in:
Kroese 2024-12-20 06:31:01 +01:00 committed by GitHub
parent 675f19d231
commit 9682234109
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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" )