bloeder grep-Fehler

This commit is contained in:
lars 2005-06-14 00:15:26 +00:00
parent c882a6adea
commit f60d31f075

View file

@ -12,7 +12,7 @@ crypt_mount()
{
local partitions=`dmsetup ls | grep -v "No devices found" | cut -f1`
for i in $partitions; do
if mount | grep -q "^/dev/mapper/$i$"
if mount | grep -q "^/dev/mapper/$i "
then true
else echo -e "\t$i (mounting)"
mount "/dev/mapper/$i" &>/dev/null || echo -e " (\"mount /dev/mapper/$i\" failed)" >&2
@ -25,7 +25,7 @@ crypt_umount()
{
local partitions=`dmsetup ls | grep -v "No devices found" | cut -f1`
for i in $partitions; do
if mount | grep -q "^/dev/mapper/$i$"
if mount | grep -q "^/dev/mapper/$i "
then echo -e "\t$i (unmounting)"
umount "/dev/mapper/$i" &>/dev/null || echo -e " (\"umount /dev/mapper/$i\" failed)" >&2
fi