Add additional param mapping and eliminate syntax error in configure script

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-03-29 07:40:15 -07:00
parent 2d841269ee
commit 279fbe4543

View File

@ -53,9 +53,11 @@ fi
for p in $@; do
p=${p#--}
[ -n "${p}" ] && {
pn=${p%=*}
pv=${p#*=}
if [ -n ${pn} ]; then
case ${pn} in
VENDOR)
@ -67,10 +69,13 @@ for p in $@; do
DATADIR)
pn=SHAREDIR
;;
SYSCONFDIR)
pn=CONFDIR
;;
esac
params[${pn}]="${pv}"
}
fi
done
vendor=${params[HOST]}