modules/*: Reintroduced the broadcom sanity check
This commit is contained in:
parent
a31b38435a
commit
72b500bee7
2 changed files with 6 additions and 4 deletions
|
@ -184,8 +184,9 @@ function action_upgrade()
|
||||||
local ret = nil
|
local ret = nil
|
||||||
local plat = luci.fs.mtime("/lib/upgrade/platform.sh")
|
local plat = luci.fs.mtime("/lib/upgrade/platform.sh")
|
||||||
local tmpfile = "/tmp/firmware.img"
|
local tmpfile = "/tmp/firmware.img"
|
||||||
|
local broadcom = os.execute('grep brcm_ /lib/upgrade/platform.sh >/dev/null 2>&1') == 0
|
||||||
|
|
||||||
local keep_avail = true
|
local keep_avail = not broadcom
|
||||||
|
|
||||||
local file
|
local file
|
||||||
luci.http.setfilehandler(
|
luci.http.setfilehandler(
|
||||||
|
|
|
@ -82,8 +82,9 @@ function action_upgrade()
|
||||||
local ret = nil
|
local ret = nil
|
||||||
local plat = luci.fs.mtime("/lib/upgrade/platform.sh")
|
local plat = luci.fs.mtime("/lib/upgrade/platform.sh")
|
||||||
local tmpfile = "/tmp/firmware.img"
|
local tmpfile = "/tmp/firmware.img"
|
||||||
|
local broadcom = os.execute('grep brcm_ /lib/upgrade/platform.sh >/dev/null 2>&1') == 0
|
||||||
|
|
||||||
local keep_avail = true
|
local keep_avail = not broadcom
|
||||||
|
|
||||||
local file
|
local file
|
||||||
luci.http.setfilehandler(
|
luci.http.setfilehandler(
|
||||||
|
|
Loading…
Reference in a new issue