Update display.sh
This commit is contained in:
parent
f0426bcc64
commit
554e503b3f
1 changed files with 4 additions and 3 deletions
|
|
@ -4,20 +4,21 @@ set -Eeuo pipefail
|
|||
# Docker environment variables
|
||||
|
||||
: "${GPU:="N"}" # GPU passthrough
|
||||
: "${VGA:="virtio-vga"}" # VGA adaptor
|
||||
: "${DISPLAY:="web"}" # Display type
|
||||
|
||||
case "${DISPLAY,,}" in
|
||||
vnc)
|
||||
DISPLAY_OPTS="-display vnc=:0"
|
||||
DISPLAY_OPTS="-display vnc=:0 -device $VGA"
|
||||
;;
|
||||
web)
|
||||
DISPLAY_OPTS="-display vnc=:0,websocket=5700"
|
||||
DISPLAY_OPTS="-display vnc=:0,websocket=5700 -device $VGA"
|
||||
;;
|
||||
none)
|
||||
DISPLAY_OPTS="-display none"
|
||||
;;
|
||||
*)
|
||||
DISPLAY_OPTS="-display $DISPLAY"
|
||||
DISPLAY_OPTS="-display $DISPLAY -device $VGA"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue