Broadcom should handle keep_avail now
This commit is contained in:
parent
402485bfcc
commit
4538b12895
2 changed files with 2 additions and 6 deletions
|
@ -185,9 +185,7 @@ function action_upgrade()
|
|||
local ret
|
||||
local plat = luci.fs.mtime("/lib/upgrade/platform.sh")
|
||||
local tmpfile = "/tmp/firmware.img"
|
||||
local broadcom = os.execute('grep brcm_ /lib/upgrade/platform.sh >/dev/null 2>&1') == 0
|
||||
|
||||
local keep_avail = not broadcom
|
||||
local keep_avail = true
|
||||
|
||||
local file
|
||||
luci.http.setfilehandler(
|
||||
|
|
|
@ -82,9 +82,7 @@ function action_upgrade()
|
|||
local ret = nil
|
||||
local plat = luci.fs.mtime("/lib/upgrade/platform.sh")
|
||||
local tmpfile = "/tmp/firmware.img"
|
||||
local broadcom = os.execute('grep brcm_ /lib/upgrade/platform.sh >/dev/null 2>&1') == 0
|
||||
|
||||
local keep_avail = not broadcom
|
||||
local keep_avail = true
|
||||
|
||||
local file
|
||||
luci.http.setfilehandler(
|
||||
|
|
Loading…
Reference in a new issue