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:
parent
89e7132797
commit
9130580bbd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239595
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user