参考:
http://wiki.openwrt.org/doc/techref/uc
http://luci.subsignal.org/api/luci/modules/luci.model.uci.html
lua代码中获取配置文件中的值
local x = require("luci.model.uci").cursor()
-- get value
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代码中获取配置文件中的值
local x = require("luci.model.uci").cursor()
-- get value
local value =x:get("config", "sectionname", "option")