eol added
This commit is contained in:
parent
df1f8fe3a2
commit
c7a2d7e128
1 changed files with 4 additions and 4 deletions
|
@ -13,8 +13,8 @@ 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$"
|
||||
then echo -en "\t$i (mounting)"
|
||||
mount "/dev/mapper/$i" &>/dev/null || echo -en " (\"mount /dev/mapper/$i\" failed)" >&2
|
||||
then echo -e "\t$i (mounting)"
|
||||
mount "/dev/mapper/$i" &>/dev/null || echo -e " (\"mount /dev/mapper/$i\" failed)" >&2
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
@ -27,8 +27,8 @@ crypt_umount()
|
|||
if mount | grep -q "^/dev/mapper/$i$"
|
||||
then true
|
||||
else
|
||||
echo -en "\t$i (unmounting)"
|
||||
umount "/dev/mapper/$i" &>/dev/null || echo -en " (\"umount /dev/mapper/$i\" failed)" >&2
|
||||
echo -e "\t$i (unmounting)"
|
||||
umount "/dev/mapper/$i" &>/dev/null || echo -e " (\"umount /dev/mapper/$i\" failed)" >&2
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue