Привет, ЛОР!
Вопрос по веб интерфейсу OpenWRT.
Есть у меня пакет (package/utils/mypack)
К нему есть приложение для LuCi (feeds/luci/applications/luci-app-mypack)
У пакета есть конфиг /etc/config/mypack с определенными настройками:
config mypack
option block1_op1 ""
option block1_op2 ""
option block1_op3 ""
option block2_op1 ""
option block2_op2 ""
option block2_op3 ""
...
option blockN_opN ""
...
m = Map("mypack", translate("MyPack"), translate("Test Package"))
s = m:section(TypedSection, "mypack", translate("mypack settings"))
s:tab("block1", translate("block1"))
s:tab("block2", translate("block2"))
...
s:tab("blockN", translate("blockN"))
--- block1 settings ---
block1_op1 = s:taboption("block1", ListValue, "block1_op1", translate("Opt1"))
block1_op1:value("0")
block1_op1:value("1")
block1_op2 = s:taboption("block1", ListValue, "block1_op2", translate("Opt2"))
block1_op2:value("0")
block1_op2:value("1")
...
--- blockN settings ---
blockN_opN = s:taboption("blockN", ListValue, "blockN_opN", translate("OptN"))
blockN_opN:value("0")
blockN_opN:value("1")
config mypack block1
option op1 ""
option op2 ""
option op3 ""
config mypack block2
option op1 ""
option op2 ""
option op3 ""
...
config mypack blockN
option opN ""
Спасибо!