modules/admin-full: honour keep settings choice on firmware upgrade
This commit is contained in:
parent
0ba2c5c661
commit
21c441c5d1
1 changed files with 3 additions and 1 deletions
|
@ -264,7 +264,9 @@ function action_upgrade()
|
|||
|
||||
-- Now invoke sysupgrade
|
||||
local keepcfg = keep_avail and luci.http.formvalue("keepcfg") == "1"
|
||||
local flash = ltn12_popen("/sbin/sysupgrade %q" % tmpfile)
|
||||
local flash = ltn12_popen("/sbin/sysupgrade %s %q" %{
|
||||
keepcfg and "" or "-n", tmpfile
|
||||
})
|
||||
|
||||
luci.ltn12.pump.all(flash, luci.http.write)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue