From 5b8b6fcb6a6c2ab13618fe98ca57ad16a65c9db0 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 3 Oct 2025 00:25:37 +0200 Subject: [PATCH] fix: Always remove PID file --- src/network.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/network.sh b/src/network.sh index b3e8d98..41b0eda 100644 --- a/src/network.sh +++ b/src/network.sh @@ -515,6 +515,9 @@ if [[ "$IP" == "172.17."* ]]; then warn "your container IP starts with 172.17.* which will cause conflicts when you install the Container Manager package inside DSM!" fi +# Clean up old files +rm -f /var/run/dnsmasq.pid + if [[ -d "/sys/class/net/$VM_NET_TAP" ]]; then info "Lingering interface will be removed..." ip link delete "$VM_NET_TAP" || true