feat: Daemonize QEMU

* feat: Daemonize QEMU
This commit is contained in:
Kroese
2023-12-28 03:42:06 +01:00
committed by GitHub
parent 06f210846c
commit 08e4084458
6 changed files with 118 additions and 47 deletions

View File

@@ -158,14 +158,14 @@ closeNetwork () {
if [[ "$DHCP" == [Yy1]* ]]; then
{ pkill -f server.sh || true; } 2>/dev/null
fKill "server.sh"
ip link set "$VM_NET_TAP" down || true
ip link delete "$VM_NET_TAP" || true
else
{ pkill -f dnsmasq || true; } 2>/dev/null
fKill "dnsmasq"
ip link set "$VM_NET_TAP" down promisc off || true
ip link delete "$VM_NET_TAP" || true
@@ -180,7 +180,7 @@ closeNetwork () {
# Configure Network
# ######################################
{ pkill -f server.sh || true; } 2>/dev/null
fKill "server.sh"
# Create the necessary file structure for /dev/net/tun
if [ ! -c /dev/net/tun ]; then