Luci - UCI (Unified Configuration Interface)

  

參考:html

   http://wiki.openwrt.org/doc/techref/ucapi

   http://luci.subsignal.org/api/luci/modules/luci.model.uci.htmlui

    

    lua代碼中獲取配置文件中的值lua

1     local x = require("luci.model.uci").cursor()
2     
3 -- get value 4 local value =x:get("config", "sectionname", "option")
相關文章
相關標籤/搜索