Browse Source

runqemu-gen-tapdevs: remove only our taps

Ignore itnerfaces with other names than what the runqemu scripts created.

(From OE-Core rev: e99ec79a423d09b9308e3d42f0832ee583b1456d)

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Adrian Freihofer 1 year ago
parent
commit
9e1e717bf7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/runqemu-gen-tapdevs

+ 1 - 1
scripts/runqemu-gen-tapdevs

@@ -68,7 +68,7 @@ if [ ! -x "$RUNQEMU_IFUP" ]; then
 fi
 
 if interfaces=`ip tuntap list` 2>/dev/null; then
-	interfaces=`echo "$interfaces" |cut -f1 -d: `
+	interfaces=`echo "$interfaces" |cut -f1 -d: |grep -E "^$OE_TAP_NAME.*"`
 else
 	echo "Failed to call 'ip tuntap list'" >&2
 	exit 1