2017-02-08 21:19:24 +00:00
|
|
|
return function(form, uci)
|
2018-02-23 05:26:10 +00:00
|
|
|
local pkg_i18n = i18n 'gluon-config-mode-autoupdater'
|
|
|
|
|
2017-06-23 12:55:38 +00:00
|
|
|
local enabled = uci:get_bool("autoupdater", "settings", "enabled")
|
|
|
|
if enabled then
|
2017-06-23 11:00:52 +00:00
|
|
|
form:section(
|
2017-02-08 21:19:24 +00:00
|
|
|
Section, nil,
|
2018-02-23 05:26:10 +00:00
|
|
|
pkg_i18n.translate('This node will automatically update its firmware when a new version is available.')
|
2017-02-08 21:19:24 +00:00
|
|
|
)
|
2017-06-23 12:55:38 +00:00
|
|
|
else
|
|
|
|
form:section(
|
|
|
|
Section, nil,
|
2018-02-23 05:26:10 +00:00
|
|
|
pkg_i18n.translate('Automatic updates are disabled. They can be enabled in <em>Advanced settings</em>.')
|
2017-06-23 12:55:38 +00:00
|
|
|
)
|
2017-02-08 21:19:24 +00:00
|
|
|
end
|
2014-07-27 17:31:45 +00:00
|
|
|
end
|