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 | |
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')
-rw-r--r-- | package/network/services/ppp/Makefile | 2 | ||||
-rwxr-xr-x | package/network/services/ppp/files/ppp.sh | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/package/network/services/ppp/Makefile b/package/network/services/ppp/Makefile index a4122a4..e0acf59 100644 --- a/package/network/services/ppp/Makefile +++ b/package/network/services/ppp/Makefile @@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=ppp PKG_VERSION:=2.4.7 -PKG_RELEASE:=7 +PKG_RELEASE:=8 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://download.samba.org/pub/ppp/ 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 \ |