Luci - UCI (Unified Configuration Interface)

  

参考:

   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")

 

你可能感兴趣的:(configuration)