Allow - be used in the name of a provider. Without this change it's not

possible to specify a gptid in geli_devices.
This commit is contained in:
Xin LI 2012-08-22 22:17:35 +00:00
parent 89e7132797
commit 9130580bbd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239595
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ geli_start()
fi
for provider in ${devices}; do
provider_=`ltr ${provider} '/' '_'`
provider_=`ltr ${provider} '/-' '_'`
eval "flags=\${geli_${provider_}_flags}"
if [ -z "${flags}" ]; then

View File

@ -42,7 +42,7 @@ geli2_start()
devices=`geli_make_list`
for provider in ${devices}; do
provider_=`ltr ${provider} '/' '_'`
provider_=`ltr ${provider} '/-' '_'`
eval "autodetach=\${geli_${provider_}_autodetach}"
if [ -z "${autodetach}" ]; then