20 lines
443 B
Lua
20 lines
443 B
Lua
local cbi = require "luci.cbi"
|
|
local i18n = require "luci.i18n"
|
|
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,
|
|
i18n.translate('This node will automatically update its firmware when a new version is available.'))
|
|
end
|
|
end
|
|
|
|
function M.handle(data)
|
|
return
|
|
end
|
|
|
|
return M
|