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