mount-test verfeinert
This commit is contained in:
parent
66144b9790
commit
e0d7a18bfe
1 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
|||
# encrypted block devices
|
||||
#
|
||||
# this script was slightly modified by age-at-systemausfall-dot-org,
|
||||
# it now also executes mount commands. search for "MOD".
|
||||
# it now also executes mount commands. search for "MODED".
|
||||
# it probably won't work with losetup (just devmapper)!
|
||||
|
||||
CRYPTCMD=/sbin/cryptsetup
|
||||
|
@ -170,13 +170,13 @@ start)
|
|||
fi
|
||||
done
|
||||
echo "."
|
||||
### MOD: mount stuff von age
|
||||
### MODED: mount stuff by age
|
||||
partitions=`dmsetup ls | cut -f1`
|
||||
for i in $partitions; do
|
||||
if [ `mount | grep -c /dev/mapper/$i` -lt 1 ]; then
|
||||
if [ `mount | grep -c "^/dev/mapper/$i$"` -lt 1 ]; then
|
||||
echo -en "\t$i (mounting)"
|
||||
mount /dev/mapper/$i > /dev/null 2>&1
|
||||
if [ $(mount | grep -c /dev/mapper/$i) -lt 1 ]; then
|
||||
if [ $(mount | grep -c "^/dev/mapper/$i$") -lt 1 ]; then
|
||||
echo -en " (\"mount /dev/mapper/$i\" failed)"
|
||||
fi
|
||||
echo ""
|
||||
|
|
Loading…
Add table
Reference in a new issue