1
0
Fork 0
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:
Lars Kruse 2018-09-16 04:01:57 +02:00
parent 99f6979f22
commit e4cd049b01
152 changed files with 225 additions and 344 deletions

View file

@ -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