Update display.sh
This commit is contained in:
parent
c43a3f76ce
commit
172acf75f9
1 changed files with 5 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue