From 33e44ca5a9c0f843c3465f3efc2b14f7740be716 Mon Sep 17 00:00:00 2001 From: pjd 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}."