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:
pjd 2005-01-21 14:38:44 +00:00
parent 5c490b063a
commit 33e44ca5a9

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}."