1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 22:25:23 +00:00

Added some basic checks to lvm_

This commit is contained in:
Niall Donegan 2012-07-24 13:46:19 +01:00
parent 4bcd18fe59
commit da50b3f8cc

View file

@ -24,8 +24,14 @@
#%# capabilities=autoconf suggest
if [ "$1" = "autoconf" ]; then
echo yes
exit 0
if ! which lvs 2>/dev/null; then
echo "no (lvs not found)"
elif ! which vgs 2>/dev/null; then
echo "no (vgs not found)"
else
echo "yes"
fi
exit 0
fi
if [ "$1" = "suggest" ]; then