0050-autoupdater-info.lua 443 B

12345678910111213141516171819
  1. local cbi = require "luci.cbi"
  2. local i18n = require "luci.i18n"
  3. local uci = luci.model.uci.cursor()
  4. local M = {}
  5. function M.section(form)
  6. local enabled = uci:get_bool("autoupdater", "settings", "enabled")
  7. if enabled then
  8. local s = form:section(cbi.SimpleSection, nil,
  9. i18n.translate('This node will automatically update its firmware when a new version is available.'))
  10. end
  11. end
  12. function M.handle(data)
  13. return
  14. end
  15. return M