From cec0a56c70c92c039527efb0295d2183072d26d8 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 19 Apr 2023 18:51:24 +0200 Subject: [PATCH] Debug --- run/network.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/run/network.sh b/run/network.sh index 2303465..a89bf9a 100644 --- a/run/network.sh +++ b/run/network.sh @@ -58,6 +58,12 @@ fi [ ! -c /dev/net/tun ] && echo "Error: TUN network interface not available..." && exit 85 +if [ $DEBUG = "Y" ]; then + ifconfig + ip link + ip route +fi + update-alternatives --set iptables /usr/sbin/iptables-legacy > /dev/null update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy > /dev/null @@ -86,6 +92,10 @@ else [[ -z $(hostname -d) ]] || DNSMASQ_OPTS="$DNSMASQ_OPTS --dhcp-option=option:domain-name,$(hostname -d)" fi +if [ $DEBUG = "Y" ]; then + echo "$DNSMASQ $DNSMASQ_OPTS" +fi + $DNSMASQ $DNSMASQ_OPTS NET_OPTS="${NET_OPTS} -device virtio-net-pci,romfile=,netdev=hostnet0,mac=${VM_NET_MAC},id=net0"