Can anyone tell me the equivalent of the uci command
uci set uhttpd.test=uhttpd
uci commit
Add in lua seems to only be able to add an anonymous section
local uci = require "uci"
uci.add("uhttpd", "test") -- adds anonymous section
The content of this topic has been archived on 15 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
Can anyone tell me the equivalent of the uci command
uci set uhttpd.test=uhttpd
uci commit
Add in lua seems to only be able to add an anonymous section
local uci = require "uci"
uci.add("uhttpd", "test") -- adds anonymous section
From the wiki:
Add new section "name" with type "type":
x:set("config", "name", "type")
-- real world example:
x:set("network", "wan6", "interface")
Thanks!
The discussion might have continued from here.