mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-08-01 13:53:51 +00:00
Restructure incomplete or broken "autoconf" implementations
Some plugins with non-zero autoconf exitcodes (it must be zero instead) deserved a bit of code cleanup for improved readability.
This commit is contained in:
parent
46e2de55de
commit
9cef55a3ed
15 changed files with 85 additions and 105 deletions
|
@ -15,10 +15,11 @@
|
|||
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
# Search for arp
|
||||
which arp >/dev/null 2>/dev/null || (echo "no (can't find arp binary)" && exit 1)
|
||||
|
||||
# ...or success
|
||||
echo yes
|
||||
if which arp >/dev/null; then
|
||||
echo yes
|
||||
else
|
||||
echo "no (missing 'arp' executable)"
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue