From 7a2507c52fcef007636701b947d0106c5b968272 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 24 Sep 2007 06:57:40 +0000 Subject: =?UTF-8?q?Fix=20pppd=20metric,=20#193574=20thanks=20to=20Martin?= =?UTF-8?q?=20V=C3=A4th.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- net.Linux/pppd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net.Linux') diff --git a/net.Linux/pppd.sh b/net.Linux/pppd.sh index bbb96cb..47d7dae 100644 --- a/net.Linux/pppd.sh +++ b/net.Linux/pppd.sh @@ -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 -- cgit v1.2.3