0050-autoupdater-info.lua 472 B

12345678910111213141516
  1. return function(form, uci)
  2. local pkg_i18n = i18n 'gluon-config-mode-autoupdater'
  3. local enabled = uci:get_bool("autoupdater", "settings", "enabled")
  4. if enabled then
  5. form:section(
  6. Section, nil,
  7. pkg_i18n.translate('This node will automatically update its firmware when a new version is available.')
  8. )
  9. else
  10. form:section(
  11. Section, nil,
  12. pkg_i18n.translate('Automatic updates are disabled. They can be enabled in <em>Advanced settings</em>.')
  13. )
  14. end
  15. end