]> code.ossystems Code Review - openembedded-core.git/commitdiff
runqemu: Handle device names like tapX@NONE
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 9 Aug 2015 07:05:10 +0000 (00:05 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 9 Aug 2015 07:12:43 +0000 (00:12 -0700)
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>
scripts/runqemu-internal

index 0ace485cb88ea1079e1d46262052d205e9d25011..d74332203787428593da46591a4cc99a96d78fd5 100755 (executable)
@@ -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"