summaryrefslogtreecommitdiff
path: root/scripts/runqemu-gen-tapdevs
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-01 22:04:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-02 14:20:32 +0100
commit6b5706d1f9ce7a3fd4d8f819ff8f3fd789665647 (patch)
tree436599b7eda0bd343518cfcc81e72976dc16444e /scripts/runqemu-gen-tapdevs
parent06625096f897235ed85f0d9a1355497f92938454 (diff)
downloadopenembedded-core-6b5706d1f9ce7a3fd4d8f819ff8f3fd789665647.tar.gz
openembedded-core-6b5706d1f9ce7a3fd4d8f819ff8f3fd789665647.tar.bz2
openembedded-core-6b5706d1f9ce7a3fd4d8f819ff8f3fd789665647.tar.xz
openembedded-core-6b5706d1f9ce7a3fd4d8f819ff8f3fd789665647.zip
scripts: Show sensible warning messages if expected binaries don't exist
[YOCTO #1438] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-gen-tapdevs')
-rwxr-xr-xscripts/runqemu-gen-tapdevs4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/runqemu-gen-tapdevs b/scripts/runqemu-gen-tapdevs
index 9f313879e..15bccd448 100755
--- a/scripts/runqemu-gen-tapdevs
+++ b/scripts/runqemu-gen-tapdevs
@@ -62,6 +62,10 @@ if [ -z "$IFCONFIG" ]; then
# Is it ever anywhere else?
IFCONFIG=/sbin/ifconfig
fi
+if [ ! -x "$IFCONFIG" ]; then
+ echo "$IFCONFIG cannot be executed"
+ exit 1
+fi
# Ensure we start with a clean slate
for tap in `$IFCONFIG | grep ^tap | awk '{ print \$1 }'`; do