Fix ppp options ordering.

Fixes #205.
This commit is contained in:
Nao Nakashima 2009-11-04 19:40:52 +00:00 committed by Roy Marples
parent 95ee39ab1c
commit 4a892a23ba

View File

@ -90,7 +90,7 @@ pppd_pre_start()
eval passwordset=\$\{password_${IFVAR}-x\} eval passwordset=\$\{password_${IFVAR}-x\}
if [ -n "${username}" ] \ if [ -n "${username}" ] \
&& [ -n "${password}" -o -z "${passwordset}" ]; then && [ -n "${password}" -o -z "${passwordset}" ]; then
opts="${opts} plugin passwordfd.so passwordfd 0" opts="plugin passwordfd.so ${opts} passwordfd 0"
fi fi
if ! ${hasdefaultmetric}; then if ! ${hasdefaultmetric}; then
@ -155,7 +155,7 @@ pppd_pre_start()
opts="${opts} connect true" opts="${opts} connect true"
set -- "$@" "${link}" set -- "$@" "${link}"
fi fi
opts="${opts} plugin $1.so" opts="plugin $1.so ${opts}"
shift shift
opts="${opts} $@" opts="${opts} $@"
done done