'fixed cryptdevice check'

This commit is contained in:
Tobias Powalowski 2009-04-20 07:23:50 +02:00
parent 23985115dc
commit 804f5378a5

View file

@ -2001,7 +2001,7 @@ getraidarrays() {
getcryptsetup() {
CRYPTSETUP=""
if [ "$(cryptsetup status $(basename $PART_ROOT))" ]; then
if ! [ "$(cryptsetup status $(basename $PART_ROOT) | grep inactive) " ]; then
CRYPTDEVICE="$(echo $(cryptsetup status $(basename $PART_ROOT) | grep device: | sed -e 's#device:##g'))"
CRYPTNAME="$(basename $PART_ROOT)"
CRYPTSETUP="cryptdevice=$CRYPTDEVICE:$CRYPTNAME"