ppp: use more reliable way to set script environment
[openwrt/openwrt.git] / package / network / utils / comgt / files / 3g.sh
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"