From 2e9317222ec1027e5597a35cf50b5c0faf99f742 Mon Sep 17 00:00:00 2001 From: toby Date: Mon, 11 Mar 2019 07:19:09 +0000 Subject: [PATCH] minor bugfix on wit-gc... more to come on stale routes --- files/wit-gc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/wit-gc b/files/wit-gc index 5ae20e3..ce84cf7 100755 --- a/files/wit-gc +++ b/files/wit-gc @@ -6,8 +6,8 @@ EMPTYBR=$(for br in /sys/devices/virtual/net/br*; do if [ ! -d $br ]; then conti for BRIDGE in $EMPTYBR do echo "removing unused customer bridge/vxlan: $BRIDGE" - for uplinkif in ls /sys/devices/virtual/net/$BRIDGE/brif/; do - ip link del dev $uplinkif + for uplinkif in /sys/devices/virtual/net/$BRIDGE/brif/*; do + ip link del dev ${uplinkif##*/} done ip link set down $BRIDGE brctl delbr $BRIDGE