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:
parent
4bcd18fe59
commit
da50b3f8cc
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue