summaryrefslogtreecommitdiff
path: root/net.Linux
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-09-24 06:57:40 +0000
committerRoy Marples <roy@marples.name>2007-09-24 06:57:40 +0000
commit7a2507c52fcef007636701b947d0106c5b968272 (patch)
tree8deb45793d12b7520548041858b7f3ddb73442ea /net.Linux
parente0d06f556ea52ee7e7d2044f116bd94187448577 (diff)
downloadopenrc-7a2507c52fcef007636701b947d0106c5b968272.tar.gz
openrc-7a2507c52fcef007636701b947d0106c5b968272.tar.bz2
openrc-7a2507c52fcef007636701b947d0106c5b968272.tar.xz
Fix pppd metric, #193574 thanks to Martin Väth.
Diffstat (limited to 'net.Linux')
-rw-r--r--net.Linux/pppd.sh2
1 files changed, 1 insertions, 1 deletions
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