Skip to content

Commit

Permalink
fix: Close dnsmasq (#235)
Browse files Browse the repository at this point in the history
* fix: Obsolete line

* fix: Close dnsmasq
  • Loading branch information
kroese authored Dec 10, 2023
1 parent 58c3041 commit 6ef07f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ info "Booting image using $VERS..."

[[ "$DEBUG" == [Yy1]* ]] && set -x
exec qemu-system-x86_64 ${ARGS:+ $ARGS}
{ set +x; } 2>/dev/null
2 changes: 2 additions & 0 deletions src/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ closeNetwork () {

else

{ pkill -f dnsmasq || true; } 2>/dev/null

ip link set "$VM_NET_TAP" down promisc off || true
ip link delete "$VM_NET_TAP" || true

Expand Down

0 comments on commit 6ef07f2

Please sign in to comment.