1234567891011121314151617181920 |
- #!/bin/sh
- set -e
- TANG=
- for f in /usr/lib/*/nagios/plugins/tang ; do
- [ -f "$f" ] || continue
- [ -x "$f" ] || continue
- TANG="$f"
- done
- if [ -z "$TANG" ] ; then
- echo 'E: No (nagios-)tang executable found'
- exit 1
- fi
- export PATH="$(dirname "$TANG"):/usr/libexec:$PATH"
- exec ./tang
|