pptp: use the new json_get_vars function
authorFelix Fietkau <nbd@openwrt.org>
Mon, 14 May 2012 20:58:20 +0000 (20:58 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 14 May 2012 20:58:20 +0000 (20:58 +0000)
SVN-Revision: 31725

package/pptp/files/pptp.sh

index 347df346c0f2b63932bf45147a80fe27926729aa..4ce39f6f806866c99d311d31e53b07040d6ce37c 100755 (executable)
@@ -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