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