Projet

Général

Profil

Révision da50b3f8

IDda50b3f8cc8ff549d91b10b44fceae72ae917e33
Parent 4bcd18fe
Enfant 7e736ea7

Ajouté par Niall Donegan il y a plus de 13 ans

Added some basic checks to lvm_

Voir les différences:

plugins/disk/lvm_
24 24
#%# capabilities=autoconf suggest
25 25

  
26 26
if [ "$1" = "autoconf" ]; then
27
        echo yes
28
        exit 0
27
    if ! which lvs 2>/dev/null; then
28
        echo "no (lvs not found)"
29
    elif ! which vgs 2>/dev/null; then
30
        echo "no (vgs not found)"
31
    else
32
        echo "yes"
33
    fi
34
    exit 0
29 35
fi
30 36

  
31 37
if [ "$1" = "suggest" ]; then

Formats disponibles : Unified diff