Fix pppd metric, #193574 thanks to Martin Väth.

This commit is contained in:
Roy Marples
2007-09-24 06:57:40 +00:00
parent e0d06f556e
commit 7a2507c52f
2 changed files with 5 additions and 1 deletions

View File

@@ -91,7 +91,7 @@ pppd_pre_start() {
if ! ${hasdefaultmetric} ; then
local m=
eval m=\$metric_${IFVAR}
[ -z "${m}" ] && m=$((${metric} + _ifindex))
[ -z "${m}" ] && m=$((${metric} + $(_ifindex)))
opts="${opts} defaultmetric ${m}"
fi
if [ -n "${mtu}" ] ; then