mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
23 lines
519 B
Lua
23 lines
519 B
Lua
m = Map("vlmcsd")
|
|
|
|
s = m:section(TypedSection, "vlmcsd")
|
|
s.addremove = false
|
|
s.anonymous = true
|
|
|
|
config = s:option(TextValue, "config")
|
|
config.description = translate("This file is /etc/vlmcsd/vlmcsd.ini.")
|
|
config.template = "cbi/tvalue"
|
|
config.rows = 25
|
|
config.wrap = "off"
|
|
|
|
function config.cfgvalue(self, section)
|
|
return nixio.fs.readfile("/etc/vlmcsd/vlmcsd.ini")
|
|
end
|
|
|
|
function config.write(self, section, value)
|
|
value = value:gsub("\r\n?", "\n")
|
|
nixio.fs.writefile("/etc/vlmcsd/vlmcsd.ini", value)
|
|
end
|
|
|
|
return m
|