ppp: backport use a more reliable way to set script environment
Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@46943 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
ff896d145c
commit
d97fa727c4
|
@ -90,7 +90,7 @@ ppp_generic_setup() {
|
|||
ipv6=""
|
||||
elif [ -z "$ipv6" -o "$ipv6" = auto ]; then
|
||||
ipv6=1
|
||||
proto_export "AUTOIPV6=1"
|
||||
autoipv6=1
|
||||
fi
|
||||
|
||||
if [ "${demand:-0}" -gt 0 ]; then
|
||||
|
@ -126,6 +126,7 @@ ppp_generic_setup() {
|
|||
${localip:+$localip:} \
|
||||
${lcp_failure:+lcp-echo-interval $lcp_interval lcp-echo-failure $lcp_failure $lcp_adaptive} \
|
||||
${ipv6:++ipv6} \
|
||||
${autoipv6:+set AUTOIPV6=1} \
|
||||
nodefaultroute \
|
||||
usepeerdns \
|
||||
$demand maxfail 1 \
|
||||
|
|
Loading…
Reference in New Issue