This commit is contained in:
2025-06-15 19:20:32 +02:00
parent 7b859d274c
commit 63f4f77366
2 changed files with 16 additions and 10 deletions

View File

@@ -148,7 +148,7 @@ cleanup_network() {
# Check if bridge still has any TAP interfaces
if [ -n "$bridge_name" ] && ip link show "$bridge_name" &>/dev/null; then
local tap_count=$(ip link show master "$bridge_name" 2>/dev/null | grep -c "tap-" || echo "0")
local tap_count=$(ip link show master "$bridge_name" 2>/dev/null | grep "tap-" | wc -l)
if [ "$tap_count" -eq 0 ]; then
info "Bridge '$bridge_name' has no remaining TAP interfaces"
# Note: We don't automatically remove the bridge as it might be used by other services