ppp: backport use a more reliable way to set script environment
authorSteven Barth <steven@midlink.org>
Tue, 15 Sep 2015 14:56:43 +0000 (14:56 +0000)
committerSteven Barth <steven@midlink.org>
Tue, 15 Sep 2015 14:56:43 +0000 (14:56 +0000)
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

package/network/services/ppp/files/ppp.sh

index a6389a8..2a7e76b 100755 (executable)
@@ -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 \