summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-09 00:05:10 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-18 19:22:24 +0100
commit78b2eaa5163d61e051e0511a6223c344d1b1c2eb (patch)
tree9b756a3b3b4d37ab1d9481a449188aab7ba54c85 /scripts
parent1245acce1899c2ffef0750b8c33d8c63b36f3c7c (diff)
downloadast2050-yocto-poky-78b2eaa5163d61e051e0511a6223c344d1b1c2eb.zip
ast2050-yocto-poky-78b2eaa5163d61e051e0511a6223c344d1b1c2eb.tar.gz
runqemu: Handle device names like tapX@NONE
ip list can return devices in the form tapX@NONE. If it does so, ensure we handle that case correctly. Newer distros appear to do this in some cases. [YOCTO #8129] (From OE-Core master rev: 6459dde380febce24d2c355d441d9cb3b14409b9) (From OE-Core rev: a6709ac54bb9ac79692c3c6faadaace11b8f33f4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu-internal2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index e346c64..2784d67 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -179,7 +179,7 @@ else
exit 1
fi
- POSSIBLE=`$IFCONFIG link | grep 'tap' | awk '{print $2}' | sed s/://`
+ POSSIBLE=`$IFCONFIG link | grep 'tap' | awk '{print $2}' | sed -e 's/://' -e 's/@.*//'`
TAP=""
LOCKFILE=""
USE_PRECONF_TAP="no"
OpenPOWER on IntegriCloud