summaryrefslogtreecommitdiff
path: root/package/pptp
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-14 20:58:20 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-05-14 20:58:20 +0000
commit3ee1a3abf0b08a05bfccabc81d72f6d9c825e835 (patch)
tree13122f9a12c0bcbea1a747308548cad84b0cd1d8 /package/pptp
parent189c25d31875d8f4ad901fa71912fcbd099f37e2 (diff)
downloadmtk-20170518-3ee1a3abf0b08a05bfccabc81d72f6d9c825e835.zip
mtk-20170518-3ee1a3abf0b08a05bfccabc81d72f6d9c825e835.tar.gz
mtk-20170518-3ee1a3abf0b08a05bfccabc81d72f6d9c825e835.tar.bz2
pptp: use the new json_get_vars function
SVN-Revision: 31725
Diffstat (limited to 'package/pptp')
-rwxr-xr-xpackage/pptp/files/pptp.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/pptp/files/pptp.sh b/package/pptp/files/pptp.sh
index 347df34..4ce39f6 100755
--- a/package/pptp/files/pptp.sh
+++ b/package/pptp/files/pptp.sh
@@ -20,7 +20,7 @@ proto_pptp_setup() {
local iface="$2"
local load
- json_get_var server server
+ json_get_vars server buffering
serv_addr=
for ip in $(resolveip -t 5 "$server"); do
@@ -34,7 +34,6 @@ proto_pptp_setup() {
exit 1
}
- json_get_var buffering buffering
[ "${buffering:-1}" == 0 ] && buffering="--nobuffer" || buffering=
for module in slhc ppp_generic ppp_async ip_gre; do