From 25d46c0e963a273e6f2cf097a05a2c24e63251ff Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 21 Aug 2007 08:21:40 +0000 Subject: Fix pppd getting the interface metric. --- net.Linux/pppd.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'net.Linux') 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 -- cgit v1.2.3