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 rev: 6459dde380febce24d2c355d441d9cb3b14409b9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2015-08-09 00:05:10 -07:00
parent 8020a9e44f
commit 0968e3a68b

View File

@@ -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"