added getlabel funcion

This commit is contained in:
Tobias Powalowski 2010-05-24 15:05:20 +02:00
parent ab1b1bbe52
commit b58ad6d84e

View file

@ -97,6 +97,15 @@ getuuid()
echo "$(blkid -s UUID -o value ${1})"
}
# parameters: device file
# outputs: LABEL on success
# nothing on failure
# returns: nothing
getlabel()
{
echo "$(blkid -s LABEL -o value ${1})"
}
# activate_dmraid()
# activate dmraid devices
activate_dmraid()