From 6b5706d1f9ce7a3fd4d8f819ff8f3fd789665647 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 1 Sep 2011 22:04:48 +0100 Subject: scripts: Show sensible warning messages if expected binaries don't exist [YOCTO #1438] Signed-off-by: Richard Purdie --- scripts/runqemu-gen-tapdevs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/runqemu-gen-tapdevs') 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 -- cgit v1.2.3