luci-mod-admin-full: fix forced upgrade

* fix logical glitch in forced upgrade logic

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken 2018-08-20 21:36:11 +02:00
parent 6fa1267553
commit 53b90e3c8c

View file

@ -295,7 +295,7 @@ function action_sysupgrade()
-- --
elseif step == 2 then elseif step == 2 then
local keep = (http.formvalue("keep") == "1") and "" or "-n" local keep = (http.formvalue("keep") == "1") and "" or "-n"
local force = (http.formvalue("force") == "1") and "" or "-F" local force = (http.formvalue("force") == "1") and "-F" or ""
luci.template.render("admin_system/applyreboot", { luci.template.render("admin_system/applyreboot", {
title = luci.i18n.translate("Flashing..."), title = luci.i18n.translate("Flashing..."),
msg = luci.i18n.translate("The system is flashing now.<br /> DO NOT POWER OFF THE DEVICE!<br /> Wait a few minutes before you try to reconnect. It might be necessary to renew the address of your computer to reach the device again, depending on your settings."), msg = luci.i18n.translate("The system is flashing now.<br /> DO NOT POWER OFF THE DEVICE!<br /> Wait a few minutes before you try to reconnect. It might be necessary to renew the address of your computer to reach the device again, depending on your settings."),