From: Adrian Freihofer Date: Thu, 22 Jun 2023 17:01:28 +0000 (+0200) Subject: runqemu-gen-tapdevs: remove only our taps X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~547 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e99ec79a423d09b9308e3d42f0832ee583b1456d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git runqemu-gen-tapdevs: remove only our taps Ignore itnerfaces with other names than what the runqemu scripts created. Signed-off-by: Adrian Freihofer Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie --- diff --git a/scripts/runqemu-gen-tapdevs b/scripts/runqemu-gen-tapdevs index cbf80089290..a00c79c4420 100755 --- a/scripts/runqemu-gen-tapdevs +++ b/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