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:24:47 +0100 |
commit | 85ed217b603a86113dda11d952850e8ceed30795 (patch) | |
tree | 13d3764b00845d088aa275588976688f457f43db /scripts/runqemu-internal | |
parent | 6bb6ca6164b6b5f082fe05c30974463c2aa1c170 (diff) | |
download | openembedded-core-85ed217b603a86113dda11d952850e8ceed30795.tar.gz openembedded-core-85ed217b603a86113dda11d952850e8ceed30795.tar.bz2 openembedded-core-85ed217b603a86113dda11d952850e8ceed30795.zip |
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]
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 exit 1 fi -POSSIBLE=`$IFCONFIG -a | grep '^tap' | awk '{print $1}'` +POSSIBLE=`$IFCONFIG -a | grep '^tap' | awk '{print $1}' | sed s/://` TAP="" LOCKFILE="" for tap in $POSSIBLE; do |