mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
dist/tools/tapsetup: fix deletion when UPLINK unset
This commit is contained in:
parent
ec296f8439
commit
e731397bae
2
dist/tools/tapsetup/tapsetup
vendored
2
dist/tools/tapsetup/tapsetup
vendored
@ -92,7 +92,7 @@ delete_bridge() {
|
||||
kldunload if_bridge || exit 1 ;;
|
||||
Linux)
|
||||
for IF in $(ls /sys/class/net/${BRNAME}/brif); do
|
||||
if [ ${IF} != ${UPLINK} ]; then
|
||||
if [ "${IF}" != "${UPLINK}" ]; then
|
||||
ip link delete "${IF}"
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user