aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-14 20:58:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-05-14 20:58:27 +0000
commita6e7b3cffeaf69fbb0f9fb20f102849dca9d1340 (patch)
tree19e785eabcc6b79f735a34ad43eed87dd7455a3c
parente8fa94daa4e7116258ed938bb6e675d0ecc9784b (diff)
downloadupstream-a6e7b3cffeaf69fbb0f9fb20f102849dca9d1340.tar.gz
upstream-a6e7b3cffeaf69fbb0f9fb20f102849dca9d1340.tar.bz2
upstream-a6e7b3cffeaf69fbb0f9fb20f102849dca9d1340.zip
netifd: use the new json_get_vars function in the dhcp helper script
SVN-Revision: 31727
-rwxr-xr-xpackage/netifd/files/lib/netifd/proto/dhcp.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/package/netifd/files/lib/netifd/proto/dhcp.sh b/package/netifd/files/lib/netifd/proto/dhcp.sh
index 5219029ff3..eab14627f6 100755
--- a/package/netifd/files/lib/netifd/proto/dhcp.sh
+++ b/package/netifd/files/lib/netifd/proto/dhcp.sh
@@ -18,12 +18,7 @@ proto_dhcp_setup() {
local config="$1"
local iface="$2"
- json_get_var ipaddr ipaddr
- json_get_var hostname hostname
- json_get_var clientid clientid
- json_get_var vendorid vendorid
- json_get_var broadcast broadcast
- json_get_var reqopts reqopts
+ json_get_vars ipaddr hostname clientid vendorid broadcast reqopts
local opt dhcpopts
for opt in $reqopts; do