fix: Disable kernel networking in bridge mode (#656)

This commit is contained in:
Kroese
2024-03-12 01:50:43 +01:00
committed by GitHub
parent fabb8ea3b7
commit 1c8cad92f8
6 changed files with 36 additions and 15 deletions

View File

@@ -1,8 +1,11 @@
#!/usr/bin/env bash
set -Eeuo pipefail
: "${NETWORK:="Y"}"
[ -f "/run/shm/qemu.end" ] && echo "QEMU is shutting down.." && exit 1
[ ! -f "/run/shm/qemu.pid" ] && echo "QEMU is not running yet.." && exit 0
[[ "$NETWORK" != [Yy1]* ]] && echo "Networking is disabled.." && exit 0
file="/run/shm/dsm.url"
address="/run/shm/qemu.ip"