Fix handling of providers with / in them (e.g. mirror/foo).

Submitted by:	Attila Nagy <bra@fsn.hu>
MFC after:	1 week
This commit is contained in:
Pawel Jakub Dawidek 2005-01-21 14:38:44 +00:00
parent db0e25eeb9
commit b0a99991d9

View File

@ -81,7 +81,8 @@ gbde_start()
for device in $gbde_devices; do
parent=${device%.bde}
parent=${parent#/dev/}
eval "lock=\${gbde_lock_${parent}-\"${gbde_lockdir}/${parent}.lock\"}"
parent_=`echo ${parent} | sed "s/\//_/g"`
eval "lock=\${gbde_lock_${parent_}-\"${gbde_lockdir}/${parent_}.lock\"}"
if [ -e "/dev/${parent}" -a ! -e "/dev/${parent}.bde" ]; then
echo "Configuring Disk Encryption for ${parent}."