diff --git a/hsci/hsci b/hsci/hsci index d1cf3b5a..33dd00d0 100755 --- a/hsci/hsci +++ b/hsci/hsci @@ -303,10 +303,14 @@ function del_hsci { bports="$(ip link show | grep "master $hsci" | awk '{print $2}')" for bport in $bports; do + bport=${bport%:} + if [[ $bport == *@* ]]; then + bport=${bport%@*} + fi if [ $(bridge -d link show dev $bport | grep "learning_sync on" | wc -l) -ne 0 ]; then - hsdev=${bport%:} + hsdev=$bport else - ndev=${bport%:} + ndev=$bport fi done if [ "$hsdev" == "" ]; then