mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-11-13 05:23:41 +08:00
feat: Daemonize QEMU
* feat: Daemonize QEMU
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user