diff --git a/spielspass/cryptdisks b/spielspass/cryptdisks index 95639fb..bb99f96 100755 --- a/spielspass/cryptdisks +++ b/spielspass/cryptdisks @@ -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 ""