From 7a2507c52fcef007636701b947d0106c5b968272 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 24 Sep 2007 06:57:40 +0000 Subject: Fix pppd metric, #193574 thanks to Martin Väth. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChangeLog | 4 ++++ net.Linux/pppd.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6ff533f3..27251303 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for Gentoo System Intialization ("rc") scripts # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2 + 24 Sep 2007; Roy Marples : + + Fix pppd metric, #193574 thanks to Martin Väth. + 21 Sep 2007; Roy Marples : Use a pty for prefixed output instead of pipes for stdout/stderr. This diff --git a/net.Linux/pppd.sh b/net.Linux/pppd.sh index bbb96cb4..47d7dae3 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