summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-ifup
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@gmail.com>2023-06-22 19:01:24 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-24 12:21:48 +0100
commit292ca0207dfc376eb45d064f109eb229a0807e86 (patch)
treee8cfd2d2e8264e727e493e37c010e42d86592ef3 /scripts/runqemu-ifup
parentb97fe9d3e7dce1ee625aa1c1d37d004e93d35ddb (diff)
downloadpoky-292ca0207dfc376eb45d064f109eb229a0807e86.tar.gz
runqemu-ifup: remove only our taps
If there are other tap interfaces than the interfaces created by the runqemu-* scripts, these interfaces are not ignored. This is now fixed by filtering the interfaces for a specific prefix in the interface name. (From OE-Core rev: f65fb5fce45d13c2881acd8295d417635449c52d) 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>
Diffstat (limited to 'scripts/runqemu-ifup')
-rwxr-xr-xscripts/runqemu-ifup2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup
index fe4492e78b..c65ceaf1c8 100755
--- a/scripts/runqemu-ifup
+++ b/scripts/runqemu-ifup
@@ -45,7 +45,7 @@ if [ -z "$OE_TAP_NAME" ]; then
45fi 45fi
46 46
47if taps=$(ip tuntap list 2>/dev/null); then 47if taps=$(ip tuntap list 2>/dev/null); then
48 tap_no_last=$(echo "$taps" |cut -f 1 -d ":" |sed "s/$OE_TAP_NAME//g" | sort -rn | head -n 1) 48 tap_no_last=$(echo "$taps" |cut -f 1 -d ":" |grep -E "^$OE_TAP_NAME.*" |sed "s/$OE_TAP_NAME//g" | sort -rn | head -n 1)
49 if [ -z "$tap_no_last" ]; then 49 if [ -z "$tap_no_last" ]; then
50 tap_no=0 50 tap_no=0
51 else 51 else