fix: Display fallback
This commit is contained in:
parent
675f19d231
commit
9682234109
1 changed files with 3 additions and 1 deletions
|
@ -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" )
|
||||
|
|
Loading…
Reference in a new issue