From 00c4ef779596260d01a4e824235b1c0217fe73e1 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 14 Feb 2025 20:19:12 +0100 Subject: [PATCH] feat: Remove existing TAP interface (#892) --- src/network.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/network.sh b/src/network.sh index cee1771..3a9d297 100644 --- a/src/network.sh +++ b/src/network.sh @@ -389,6 +389,11 @@ 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 +if [[ -d "/sys/class/net/$VM_NET_TAP" ]]; then + info "Lingering interface will be removed..." + ip link delete "$VM_NET_TAP" || true +fi + if [[ "$DHCP" == [Yy1]* ]]; then checkOS