Fix pppd getting the interface metric.
This commit is contained in:
parent
dc5e26e056
commit
25d46c0e96
@ -1,6 +1,10 @@
|
|||||||
# ChangeLog for Gentoo System Intialization ("rc") scripts
|
# ChangeLog for Gentoo System Intialization ("rc") scripts
|
||||||
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2
|
# 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)
|
* baselayout-2.0.0_rc3 (20 Aug 2007)
|
||||||
|
|
||||||
20 Aug 2007; Roy Marples <uberlord@gentoo.org>:
|
20 Aug 2007; Roy Marples <uberlord@gentoo.org>:
|
||||||
|
@ -89,7 +89,8 @@ pppd_pre_start() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if ! ${hasdefaultmetric} ; then
|
if ! ${hasdefaultmetric} ; then
|
||||||
local m=\$metric_${IFVAR}
|
local m=
|
||||||
|
eval m=\$metric_${IFVAR}
|
||||||
[ -z "${m}" ] && m=$((${metric} + _ifindex))
|
[ -z "${m}" ] && m=$((${metric} + _ifindex))
|
||||||
opts="${opts} defaultmetric ${m}"
|
opts="${opts} defaultmetric ${m}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user