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
|
# Docker environment variables
|
||||||
|
|
||||||
: "${VGA:="VGA"}" # Adaptor
|
: "${DISPLAY:="web"}" # Display type
|
||||||
: "${DISPLAY:="web"}" # Display
|
: "${VGA:="virtio-gpu"}" # VGA adaptor
|
||||||
|
|
||||||
case "${DISPLAY,,}" in
|
case "${DISPLAY,,}" in
|
||||||
vnc)
|
vnc)
|
||||||
DISPLAY_OPTS="-display vnc=:0 -device virto-gpu"
|
DISPLAY_OPTS="-display vnc=:0 -device $VGA"
|
||||||
;;
|
;;
|
||||||
web)
|
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"
|
DISPLAY_OPTS="-display vnc=:0,websocket=5700 -device ramfb"
|
||||||
;;
|
;;
|
||||||
none)
|
none)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue