Răsfoiți Sursa

netifd: use the new json_get_vars function in the dhcp helper script

SVN-Revision: 31727
Felix Fietkau 13 ani în urmă
părinte
comite
a6e7b3cffe
1 a modificat fișierele cu 1 adăugiri și 6 ștergeri
  1. 1 6
      package/netifd/files/lib/netifd/proto/dhcp.sh

+ 1 - 6
package/netifd/files/lib/netifd/proto/dhcp.sh

@@ -18,12 +18,7 @@ proto_dhcp_setup() {
 	local config="$1"
 	local config="$1"
 	local iface="$2"
 	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
 	local opt dhcpopts
 	for opt in $reqopts; do
 	for opt in $reqopts; do