diff options
author | Steven Barth <steven@midlink.org> | 2015-09-15 14:56:43 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-09-15 14:56:43 +0000 |
commit | d97fa727c420bb2f5eab52a8470d4ba08b5492e5 (patch) | |
tree | 86e545c364d32d0e9c9be5c5dbe2853fb403236c /package | |
parent | ff896d145ce2703719a935479e3788b1930c693b (diff) | |
download | upstream-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
Diffstat (limited to 'package')
-rwxr-xr-x | package/network/services/ppp/files/ppp.sh | 3 |
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 \ |