aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-09-15 14:56:43 +0000
committerSteven Barth <steven@midlink.org>2015-09-15 14:56:43 +0000
commitd97fa727c420bb2f5eab52a8470d4ba08b5492e5 (patch)
tree86e545c364d32d0e9c9be5c5dbe2853fb403236c
parentff896d145ce2703719a935479e3788b1930c693b (diff)
downloadupstream-d97fa727c420bb2f5eab52a8470d4ba08b5492e5.tar.gz
upstream-d97fa727c420bb2f5eab52a8470d4ba08b5492e5.tar.bz2
upstream-d97fa727c420bb2f5eab52a8470d4ba08b5492e5.zip
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-a3cf2f4a3e73
-rwxr-xr-xpackage/network/services/ppp/files/ppp.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/network/services/ppp/files/ppp.sh b/package/network/services/ppp/files/ppp.sh
index a6389a8b93..2a7e76b7fe 100755
--- a/package/network/services/ppp/files/ppp.sh
+++ b/package/network/services/ppp/files/ppp.sh
@@ -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 \