summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-gen-tapdevs
diff options
context:
space:
mode:
authorScott Garman <scott.a.garman@intel.com>2012-09-21 15:06:02 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-24 11:24:47 +0100
commit85ed217b603a86113dda11d952850e8ceed30795 (patch)
tree13d3764b00845d088aa275588976688f457f43db /scripts/runqemu-gen-tapdevs
parent6bb6ca6164b6b5f082fe05c30974463c2aa1c170 (diff)
downloadopenembedded-core-85ed217b603a86113dda11d952850e8ceed30795.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] Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-gen-tapdevs')
-rwxr-xr-xscripts/runqemu-gen-tapdevs2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu-gen-tapdevs b/scripts/runqemu-gen-tapdevs
index 2c1ff0eefb..f5be30ac32 100755
--- a/scripts/runqemu-gen-tapdevs
+++ b/scripts/runqemu-gen-tapdevs
@@ -70,7 +70,7 @@ if [ ! -x "$IFCONFIG" ]; then
fi
# Ensure we start with a clean slate
-for tap in `$IFCONFIG | grep ^tap | awk '{ print \$1 }'`; do
+for tap in `$IFCONFIG | grep ^tap | awk '{ print \$1 }' | sed s/://`; do
echo "Note: Destroying pre-existing tap interface $tap..."
$TUNCTL -d $tap
done