From 9bee5c4263ffa1098be3320395938dac7547eb76 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 3 May 2023 06:12:17 +0200 Subject: [PATCH] Display boot message --- run/network.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/run/network.sh b/run/network.sh index cb8dc72..418699c 100644 --- a/run/network.sh +++ b/run/network.sh @@ -230,6 +230,10 @@ if [ "$DHCP" != "Y" ]; then # Configuration for static IP configureNAT + # Display wait message on port 5000 + HTML="Please wait while Virtual DSM is booting..." + else if [[ "$GATEWAY" == "172."* ]]; then @@ -244,12 +248,12 @@ else HTML="The location of DSM is http://${DHCP_IP}:5000" - pkill -f server.sh - /run/server.sh 80 "${HTML}" > /dev/null & - /run/server.sh 5000 "${HTML}" > /dev/null & - fi +pkill -f server.sh +/run/server.sh 80 "${HTML}" > /dev/null & +/run/server.sh 5000 "${HTML}" > /dev/null & + NET_OPTS="${NET_OPTS} -device virtio-net-pci,romfile=,netdev=hostnet0,mac=${VM_NET_MAC},id=net0" if [ "$DHCP" = "Y" ]; then