aboutsummaryrefslogtreecommitdiff
path: root/net.Linux
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-08-21 08:21:40 +0000
committerRoy Marples <roy@marples.name>2007-08-21 08:21:40 +0000
commit25d46c0e963a273e6f2cf097a05a2c24e63251ff (patch)
treecc7331d7eb010f29affd477654f1e442568a0301 /net.Linux
parentdc5e26e056d5c08450cdcad6d935c6fe4042bf88 (diff)
Fix pppd getting the interface metric.
Diffstat (limited to 'net.Linux')
-rw-r--r--net.Linux/pppd.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/net.Linux/pppd.sh b/net.Linux/pppd.sh
index d8448f81..bbb96cb4 100644
--- a/net.Linux/pppd.sh
+++ b/net.Linux/pppd.sh
@@ -89,7 +89,8 @@ pppd_pre_start() {
fi
if ! ${hasdefaultmetric} ; then
- local m=\$metric_${IFVAR}
+ local m=
+ eval m=\$metric_${IFVAR}
[ -z "${m}" ] && m=$((${metric} + _ifindex))
opts="${opts} defaultmetric ${m}"
fi