summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2018-08-20 21:36:11 +0200
committerDirk Brenken <dev@brenken.org>2018-08-20 21:36:11 +0200
commit53b90e3c8c7ad2eedc2cb969d1b052aabda2701d (patch)
tree54169df700662145852cb0b5ff8f312541b9604f /modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
parent6fa126755329c0d4c0d80c51f1b16ccf16c272e3 (diff)
luci-mod-admin-full: fix forced upgrade
* fix logical glitch in forced upgrade logic Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'modules/luci-mod-admin-full/luasrc/controller/admin/system.lua')
-rw-r--r--modules/luci-mod-admin-full/luasrc/controller/admin/system.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua b/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
index b278b21878..2fa7847fc6 100644
--- a/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
+++ b/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
@@ -295,7 +295,7 @@ function action_sysupgrade()
--
elseif step == 2 then
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", {
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."),