20 lines
410 B
Lua
20 lines
410 B
Lua
|
local cbi = require "luci.cbi"
|
||
|
local uci = luci.model.uci.cursor()
|
||
|
|
||
|
local M = {}
|
||
|
|
||
|
function M.section(form)
|
||
|
local enabled = uci:get_bool("autoupdater", "settings", "enabled")
|
||
|
if enabled then
|
||
|
local s = form:section(cbi.SimpleSection, nil,
|
||
|
[[Dieser Knoten aktualisiert seine Firmware automatisch, sobald
|
||
|
eine neue Version vorliegt.]])
|
||
|
end
|
||
|
end
|
||
|
|
||
|
function M.handle(data)
|
||
|
return
|
||
|
end
|
||
|
|
||
|
return M
|