1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-02 20:31:07 +03:00

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
This commit is contained in:
nbd 2012-05-14 20:58:27 +00:00
parent d84fcff653
commit fb5042cd2e

View File

@ -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