diff --git a/plugins/disk/lvm_ b/plugins/disk/lvm_ index 35ac5f36..6c2ba72f 100755 --- a/plugins/disk/lvm_ +++ b/plugins/disk/lvm_ @@ -45,9 +45,9 @@ munin-node. EOF if [ "$1" = "autoconf" ]; then - if ! which lvs 2>&1 >/dev/null; then + if ! command -v lvs >/dev/null; then echo "no (lvs not found)" - elif ! which vgs 2>&1 >/dev/null; then + elif ! command -v vgs >/dev/null; then echo "no (vgs not found)" else echo "yes"