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

 

posted @ 2015-07-09 12:31  赤色  阅读(1154)  评论(0编辑  收藏  举报
知识共享许可协议本博客作品采用知识共享署名-相同方式共享 3.0 未本地化版本许可协议进行许可。