1
0
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:
Martine S. Lenders 2020-03-31 18:58:55 +02:00
parent ec296f8439
commit e731397bae
No known key found for this signature in database
GPG Key ID: CCD317364F63286F

View File

@ -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