Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] runqemu: Handle device names like tapX@NONE
@ 2015-08-09  7:05 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2015-08-09  7:05 UTC (permalink / raw)
  To: openembedded-core

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]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index 0ace485..d743322 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"




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-08-09  7:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-09  7:05 [PATCH] runqemu: Handle device names like tapX@NONE Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox