diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-01 22:04:48 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-02 14:21:30 +0100 |
| commit | d1a84c9f3d387bfeaeaa0007dda8d90164633255 (patch) | |
| tree | f51c9af343a5ab6f3a0990aefeee94d432d1ceea /scripts/runqemu-gen-tapdevs | |
| parent | c0df2ab7ebac5650e52089ada97e8657f8af3979 (diff) | |
| download | poky-d1a84c9f3d387bfeaeaa0007dda8d90164633255.tar.gz | |
scripts: Show sensible warning messages if expected binaries don't exist
[YOCTO #1438]
(From OE-Core rev: 6b5706d1f9ce7a3fd4d8f819ff8f3fd789665647)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-gen-tapdevs')
| -rwxr-xr-x | scripts/runqemu-gen-tapdevs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/runqemu-gen-tapdevs b/scripts/runqemu-gen-tapdevs index 9f313879e6..15bccd4484 100755 --- a/scripts/runqemu-gen-tapdevs +++ b/scripts/runqemu-gen-tapdevs | |||
| @@ -62,6 +62,10 @@ if [ -z "$IFCONFIG" ]; then | |||
| 62 | # Is it ever anywhere else? | 62 | # Is it ever anywhere else? |
| 63 | IFCONFIG=/sbin/ifconfig | 63 | IFCONFIG=/sbin/ifconfig |
| 64 | fi | 64 | fi |
| 65 | if [ ! -x "$IFCONFIG" ]; then | ||
| 66 | echo "$IFCONFIG cannot be executed" | ||
| 67 | exit 1 | ||
| 68 | fi | ||
| 65 | 69 | ||
| 66 | # Ensure we start with a clean slate | 70 | # Ensure we start with a clean slate |
| 67 | for tap in `$IFCONFIG | grep ^tap | awk '{ print \$1 }'`; do | 71 | for tap in `$IFCONFIG | grep ^tap | awk '{ print \$1 }'`; do |
