mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-23 11:31:06 +02:00
pptp: use the new json_get_vars function
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31725 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3040f27dde
commit
480f722254
@ -20,7 +20,7 @@ proto_pptp_setup() {
|
|||||||
local iface="$2"
|
local iface="$2"
|
||||||
local load
|
local load
|
||||||
|
|
||||||
json_get_var server server
|
json_get_vars server buffering
|
||||||
|
|
||||||
serv_addr=
|
serv_addr=
|
||||||
for ip in $(resolveip -t 5 "$server"); do
|
for ip in $(resolveip -t 5 "$server"); do
|
||||||
@ -34,7 +34,6 @@ proto_pptp_setup() {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
json_get_var buffering buffering
|
|
||||||
[ "${buffering:-1}" == 0 ] && buffering="--nobuffer" || buffering=
|
[ "${buffering:-1}" == 0 ] && buffering="--nobuffer" || buffering=
|
||||||
|
|
||||||
for module in slhc ppp_generic ppp_async ip_gre; do
|
for module in slhc ppp_generic ppp_async ip_gre; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user