mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
b97fe9d3e7
commit
292ca0207d
@@ -45,7 +45,7 @@ if [ -z "$OE_TAP_NAME" ]; then
|
||||
fi
|
||||
|
||||
if taps=$(ip tuntap list 2>/dev/null); then
|
||||
tap_no_last=$(echo "$taps" |cut -f 1 -d ":" |sed "s/$OE_TAP_NAME//g" | sort -rn | head -n 1)
|
||||
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)
|
||||
if [ -z "$tap_no_last" ]; then
|
||||
tap_no=0
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user