1
0
mirror of https://git.yoctoproject.org/poky synced 2026-01-12 03:10:06 +00:00

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>
This commit is contained in:
Adrian Freihofer
2023-06-22 19:01:28 +02:00
committed by Richard Purdie
parent 03566537a5
commit 9e1e717bf7

View File

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