aboutsummaryrefslogtreecommitdiffstats
path: root/package/netifd
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
commit4c693d4929b4c69489caed5fbc9d663225ddc62a (patch)
tree8ec3566aec31d95ba8bf48967a775f76ec836bcb /package/netifd
parent8788174df8c14f565bf3d2ee2097cfd38af0b670 (diff)
downloadmaster-187ad058-4c693d4929b4c69489caed5fbc9d663225ddc62a.tar.gz
master-187ad058-4c693d4929b4c69489caed5fbc9d663225ddc62a.tar.bz2
master-187ad058-4c693d4929b4c69489caed5fbc9d663225ddc62a.zip
netifd: use the new json_get_vars function in the dhcp helper script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31727 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/netifd')
-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