mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-24 09:57:09 +00:00
Fix trivial instances of wrong autoconf exitcodes
This commit is contained in:
parent
99f6979f22
commit
e4cd049b01
152 changed files with 225 additions and 344 deletions
|
@ -48,24 +48,24 @@ EOF
|
|||
# pf(4) module loaded?
|
||||
if [ `kldstat -v | grep pf | wc -l` -eq 0 ]; then
|
||||
echo "no (pf(4) is not loaded)"
|
||||
exit 1
|
||||
exit 0
|
||||
fi
|
||||
# enabled?
|
||||
if [ `pfctl -si 2>/dev/null | awk '/^Status:/{print $2}'` != "Enabled" ]; then
|
||||
echo "no (pf(4) is not enabled, consult pfctl(8)"
|
||||
exit 1
|
||||
exit 0
|
||||
fi
|
||||
# OpenBSD
|
||||
elif [ ${ostype} = "OpenBSD" ]; then
|
||||
# enabled?
|
||||
if [ `pfctl -si 2>/dev/null | awk '/^Status:/{print $2}'` != "Enabled" ]; then
|
||||
echo "no (pf(4) is not enabled, consult pfctl(8)"
|
||||
exit 1
|
||||
exit 0
|
||||
fi
|
||||
# Other OSes
|
||||
else
|
||||
echo "no (this plugin is not supported on your OS)"
|
||||
exit 1
|
||||
exit 0
|
||||
fi
|
||||
echo "yes"
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue