summaryrefslogtreecommitdiff
path: root/net/pppd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/pppd.sh')
-rw-r--r--net/pppd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/pppd.sh b/net/pppd.sh
index 1f9d302..97bd3ee 100644
--- a/net/pppd.sh
+++ b/net/pppd.sh
@@ -96,7 +96,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