From f8df415fbd15e7b54ec2af9e14dc65dd541168a9 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 15 Sep 2015 14:56:43 +0000 Subject: [PATCH] ppp: backport use a more reliable way to set script environment Signed-off-by: Steven Barth SVN-Revision: 46943 --- package/network/services/ppp/files/ppp.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 \ -- 2.30.2