aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--net.Linux/pppd.sh3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6919e48d..6257af43 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
+ 21 Aug 2007; Roy Marples <uberlord@gentoo.org>:
+
+ Fix pppd getting the interface metric.
+
* baselayout-2.0.0_rc3 (20 Aug 2007)
20 Aug 2007; Roy Marples <uberlord@gentoo.org>:
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