diff options
author | Steven Barth <cyrus@openwrt.org> | 2015-09-15 14:52:47 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2015-09-15 14:52:47 +0000 |
commit | 3c335bb439adb643176d34d9f70508a642779ce1 (patch) | |
tree | d090c5f8c76f04dd64d6480abdfa1f19ba1fed90 /package/network/services/ppp/files/ppp.sh | |
parent | 90e1b84f152d130754001a18f22b2bbe31237a81 (diff) | |
download | mtk-20170518-3c335bb439adb643176d34d9f70508a642779ce1.zip mtk-20170518-3c335bb439adb643176d34d9f70508a642779ce1.tar.gz mtk-20170518-3c335bb439adb643176d34d9f70508a642779ce1.tar.bz2 |
ppp: use more reliable way to set script environment
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46942
Diffstat (limited to 'package/network/services/ppp/files/ppp.sh')
-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 a6389a8..2a7e76b 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 \ |