Print more debug info

This commit is contained in:
Kroese 2023-05-02 01:44:31 +02:00 committed by GitHub
parent 7a9e678dcc
commit 3ecbf6b920

View file

@ -67,7 +67,6 @@ configureDHCP() {
ip address flush "${VM_NET_TAP}"
{ set +x; } 2>/dev/null
[ "$DEBUG" = "Y" ] && echo
TAP_NR=$(</sys/class/net/"${VM_NET_TAP}"/ifindex)
TAP_PATH="/dev/tap${TAP_NR}"
@ -196,7 +195,6 @@ configureNAT () {
$DNSMASQ ${DNSMASQ_OPTS:+ $DNSMASQ_OPTS}
{ set +x; } 2>/dev/null
[ "$DEBUG" = "Y" ] && echo
}
# ######################################
@ -244,4 +242,5 @@ else
fi
[ "$DEBUG" = "Y" ] && echo && echo "Finished network setup.." && echo
NET_OPTS="${NET_OPTS} -device virtio-net-pci,romfile=,netdev=hostnet0,mac=${VM_NET_MAC},id=net0"