diff options
author | Scott Garman <scott.a.garman@intel.com> | 2012-09-21 15:06:02 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-24 11:30:36 +0100 |
commit | e46be72a8e5d064b4b46d5b0c37d67bbb2ccae55 (patch) | |
tree | 80d8bb86ecb6dad6446a330fe440b7f0acbf7333 /scripts/runqemu-internal | |
parent | 2f0a82b8a9d27760a80c4a60f3705ca85b81f120 (diff) | |
download | poky-e46be72a8e5d064b4b46d5b0c37d67bbb2ccae55.tar.gz |
runqemu: work with tap device names that end with a colon
On Fedora systems (and likely others), ifconfig returns interface
names that end with a colon. Make sure we strip the colon off the
tap device name before using it.
This fixes [YOCTO #3028]
(From OE-Core rev: 85ed217b603a86113dda11d952850e8ceed30795)
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-x | scripts/runqemu-internal | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index 6e20dd7512..6b8bb6520e 100755 --- a/scripts/runqemu-internal +++ b/scripts/runqemu-internal | |||
@@ -154,7 +154,7 @@ if [ ! -x "$IFCONFIG" ]; then | |||
154 | exit 1 | 154 | exit 1 |
155 | fi | 155 | fi |
156 | 156 | ||
157 | POSSIBLE=`$IFCONFIG -a | grep '^tap' | awk '{print $1}'` | 157 | POSSIBLE=`$IFCONFIG -a | grep '^tap' | awk '{print $1}' | sed s/://` |
158 | TAP="" | 158 | TAP="" |
159 | LOCKFILE="" | 159 | LOCKFILE="" |
160 | for tap in $POSSIBLE; do | 160 | for tap in $POSSIBLE; do |