From: Richard Purdie Date: Sun, 9 Aug 2015 07:05:10 +0000 (-0700) Subject: runqemu: Handle device names like tapX@NONE X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6709ac54bb9ac79692c3c6faadaace11b8f33f4;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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) Signed-off-by: Richard Purdie Signed-off-by: Joshua Lock --- diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index e346c64f511..2784d675ab0 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"