参考:
http://wiki.openwrt.org/doc/techref/uc
http://luci.subsignal.org/api/luci/modules/luci.model.uci.html
lua代码中获取配置文件中的值
1 local x = require("luci.model.uci").cursor() 2
3 -- get value 4 local value =x:get("config", "sectionname", "option")
参考:
http://wiki.openwrt.org/doc/techref/uc
http://luci.subsignal.org/api/luci/modules/luci.model.uci.html
lua代码中获取配置文件中的值
1 local x = require("luci.model.uci").cursor() 2
3 -- get value 4 local value =x:get("config", "sectionname", "option")
相关文章: