gluon-web-autoupdater: make autoupdater delay configurable via advanced settings

This commit is contained in:
kb-light 2017-11-12 15:04:40 +01:00
parent 1032bbdf9c
commit 1bf872badd
4 changed files with 39 additions and 0 deletions

View File

@ -18,3 +18,15 @@ msgstr "Branch"
msgid "Enable"
msgstr "Aktivieren"
msgid "Delay"
msgstr "Verzögerung"
msgid ""
"You can delay the regular autoupdate for about an hour. This may be useful "
"if using the PoE passthrough for powering another node."
msgstr ""
"Du kannst das reguläre automatische Update um eine Stunde verzögern. Dies "
"kann hilfreich sein, wenn du PoE-Passthrough nutzt, um einen weiteren Knoten "
"zu versorgen."

View File

@ -18,3 +18,12 @@ msgstr "Branche"
msgid "Enable"
msgstr "Activer"
msgid "Delay"
msgstr "Retard"
msgid ""
"You can delay the regular autoupdate for about an hour. This may be useful "
"if using the PoE passthrough for powering another node."
msgstr ""

View File

@ -9,3 +9,12 @@ msgstr ""
msgid "Enable"
msgstr ""
msgid "Delay"
msgstr ""
msgid ""
"You can delay the regular autoupdate for about an hour. This may be useful "
"if using the PoE passthrough for powering another node."
msgstr ""

View File

@ -32,6 +32,15 @@ function o:write(data)
uci:set("autoupdater", autoupdater, "branch", data)
end
o = s:option(Flag, "delay", translate("Delay"), translate(
"You can delay the regular autoupdate for about an hour. This may " ..
"be useful if using the PoE passthrough for powering another node."
))
o.default = uci:get_bool("autoupdater", autoupdater, "delay")
function o:write(data)
uci:set("autoupdater", autoupdater, "delay", data)
end
function f:write()
uci:commit("autoupdater")
end