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
|
: "${VGA:="ramfb"}" # VGA adaptor
|
||||||
: "${DISPLAY:="web"}" # Display type
|
: "${DISPLAY:="web"}" # Display type
|
||||||
|
|
||||||
|
[[ "$DISPLAY" == ":0" ]] && DISPLAY="web"
|
||||||
|
|
||||||
case "${DISPLAY,,}" in
|
case "${DISPLAY,,}" in
|
||||||
"vnc" )
|
"vnc" )
|
||||||
DISPLAY_OPTS="-display vnc=:0 -device $VGA"
|
DISPLAY_OPTS="-display vnc=:0 -device $VGA"
|
||||||
;;
|
;;
|
||||||
"web" | ":0" )
|
"web" )
|
||||||
DISPLAY_OPTS="-display vnc=:0,websocket=5700 -device $VGA"
|
DISPLAY_OPTS="-display vnc=:0,websocket=5700 -device $VGA"
|
||||||
;;
|
;;
|
||||||
"ramfb" )
|
"ramfb" )
|
||||||
|
|
Loading…
Reference in a new issue