1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140580

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