diff options
author | Roy Marples <roy@marples.name> | 2007-08-21 08:21:40 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-08-21 08:21:40 +0000 |
commit | 25d46c0e963a273e6f2cf097a05a2c24e63251ff (patch) | |
tree | cc7331d7eb010f29affd477654f1e442568a0301 /net.Linux | |
parent | dc5e26e056d5c08450cdcad6d935c6fe4042bf88 (diff) |
Fix pppd getting the interface metric.
Diffstat (limited to 'net.Linux')
-rw-r--r-- | net.Linux/pppd.sh | 3 |
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 |