ppp: use more reliable way to set script environment
authorSteven Barth <cyrus@openwrt.org>
Tue, 15 Sep 2015 14:52:47 +0000 (14:52 +0000)
committerSteven Barth <cyrus@openwrt.org>
Tue, 15 Sep 2015 14:52:47 +0000 (14:52 +0000)
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46942

package/network/services/ppp/Makefile
package/network/services/ppp/files/ppp.sh
package/network/utils/comgt/Makefile
package/network/utils/comgt/files/3g.sh

index a4122a4f934470e2d9a0bb72a2cb76708c4da807..e0acf5993e5e6c819e8a8635e263f4c8fed8ef8b 100644 (file)
@@ -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/
index a6389a8b93c1849a73bc4e34d4da95234aec18d6..2a7e76b7fe2c3a092f8f7eea8437d41bb02f5e5d 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 \
index 716bbbf3fa54a38b39f4a48f6da7761e090b7367..ac19aad3aedacc5b3e0c0b68248975c9e3fe0dda 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=comgt
 PKG_VERSION:=0.32
-PKG_RELEASE:=26
+PKG_RELEASE:=27
 
 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=@SF/comgt
index 8aecb0fd62a0e55d3835ff17877342dd16f3b048..b0cdae234db8ed99d1de1842d956f096c1e54ab0 100644 (file)
@@ -89,9 +89,6 @@ proto_3g_setup() {
                ;;
        esac
 
-       # Enable RFC 7278
-       proto_export "EXTENDPREFIX=1"
-
        connect="${apn:+USE_APN=$apn }DIALNUMBER=$dialnumber /usr/sbin/chat -t5 -v -E -f $chat"
        ppp_generic_setup "$interface" \
                noaccomp \
@@ -99,6 +96,7 @@ proto_3g_setup() {
                novj \
                nobsdcomp \
                noauth \
+               set EXTENDPREFIX=1 \
                lock \
                crtscts \
                115200 "$device"