mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +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
|
@ -81,31 +81,31 @@ case $1 in
|
|||
# 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
|
||||
# FreeBSD
|
||||
elif [ ${ostype} = "FreeBSD" ]; 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
|
||||
# OpenBSD
|
||||
elif [ ${ostype} = "OpenBSD" ]; then
|
||||
# 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
|
||||
# Other OSes
|
||||
else
|
||||
echo "no (this plugin is not supported on your OS)"
|
||||
exit 1
|
||||
exit 0
|
||||
fi
|
||||
echo "yes"
|
||||
exit 0
|
||||
|
|
|
@ -51,12 +51,12 @@ END {
|
|||
# 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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -50,24 +50,24 @@ END {
|
|||
# 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
|
||||
|
|
|
@ -44,24 +44,24 @@ ${pfctl} -sm 2> /dev/null | awk '
|
|||
# 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