[oe-commits] Richard Purdie : runqemu: Handle device names like tapX at NONE
git at git.openembedded.org
git at git.openembedded.org
Sat Sep 19 08:53:11 UTC 2015
Module: openembedded-core.git
Branch: fido
Commit: a6709ac54bb9ac79692c3c6faadaace11b8f33f4
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=a6709ac54bb9ac79692c3c6faadaace11b8f33f4
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Sun Aug 9 00:05:10 2015 -0700
runqemu: Handle device names like tapX at NONE
ip list can return devices in the form tapX at 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 <richard.purdie at linuxfoundation.org>
Signed-off-by: Joshua Lock <joshua.lock at collabora.co.uk>
---
scripts/runqemu-internal | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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"
More information about the Openembedded-commits
mailing list