From b0a99991d96f335df8a4f89611917431e48ccf4b Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Fri, 21 Jan 2005 14:38:44 +0000 Subject: [PATCH] Fix handling of providers with / in them (e.g. mirror/foo). Submitted by: Attila Nagy MFC after: 1 week --- etc/rc.d/gbde | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/rc.d/gbde b/etc/rc.d/gbde index 8842d46981e7..5071ab9a3651 100644 --- a/etc/rc.d/gbde +++ b/etc/rc.d/gbde @@ -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}."