hi all , The following is my dhcp config config host option name 'q' option mac '64:31:50:93:f5:2c' option ip '192.168.11.123'
config host option name 'w' option mac '64:31:50:93:f5:2c' option ip '192.168.11.124' how to get the value of the option name? Can i use foreach? follow is my program profile = s:option(ListValue, "profile", translate("Profile Selection")) profile:value("", "") profile.default = "Default" profile:depends("apn", "1") m.uci:foreach("dhcp", "host", function (section) --local ifc = option[".value"] profile:value(ifc) end ) thanks all.
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel