Loading src/display.sh +3 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,9 @@ case "${DISPLAY,,}" in web) DISPLAY_OPTS="-display vnc=:0,websocket=5700 -vga $VGA" ;; disabled) DISPLAY_OPTS="-display none -vga $VGA" ;; none) DISPLAY_OPTS="-display none -vga none" ;; Loading src/network.sh +8 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ set -Eeuo pipefail : "${MAC:=""}" : "${DHCP:="N"}" : "${NETWORK:="Y"}" : "${HOST_PORTS:=""}" : "${VM_NET_DEV:=""}" Loading Loading @@ -201,6 +202,8 @@ closeNetwork() { nginx -s stop 2> /dev/null fWait "nginx" [[ "$NETWORK" != [Yy1]* ]] && return 0 exec 30<&- || true exec 40<&- || true Loading Loading @@ -271,6 +274,11 @@ getInfo() { # Configure Network # ###################################### if [[ "$NETWORK" != [Yy1]* ]]; then NET_OPTS="" return 0 fi if [ ! -c /dev/vhost-net ]; then if mknod /dev/vhost-net c 10 238; then chmod 660 /dev/vhost-net Loading Loading
src/display.sh +3 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,9 @@ case "${DISPLAY,,}" in web) DISPLAY_OPTS="-display vnc=:0,websocket=5700 -vga $VGA" ;; disabled) DISPLAY_OPTS="-display none -vga $VGA" ;; none) DISPLAY_OPTS="-display none -vga none" ;; Loading
src/network.sh +8 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ set -Eeuo pipefail : "${MAC:=""}" : "${DHCP:="N"}" : "${NETWORK:="Y"}" : "${HOST_PORTS:=""}" : "${VM_NET_DEV:=""}" Loading Loading @@ -201,6 +202,8 @@ closeNetwork() { nginx -s stop 2> /dev/null fWait "nginx" [[ "$NETWORK" != [Yy1]* ]] && return 0 exec 30<&- || true exec 40<&- || true Loading Loading @@ -271,6 +274,11 @@ getInfo() { # Configure Network # ###################################### if [[ "$NETWORK" != [Yy1]* ]]; then NET_OPTS="" return 0 fi if [ ! -c /dev/vhost-net ]; then if mknod /dev/vhost-net c 10 238; then chmod 660 /dev/vhost-net Loading