Added missing dependency which broke LuCI
Removed unneeded Broadcom sanity check
This commit is contained in:
parent
db8e5858bf
commit
d1998ce924
3 changed files with 3 additions and 5 deletions
|
@ -100,7 +100,7 @@ endef
|
||||||
|
|
||||||
define Package/luci-core
|
define Package/luci-core
|
||||||
$(call Package/luci/libtemplate)
|
$(call Package/luci/libtemplate)
|
||||||
DEPENDS:=+lua +luaposix
|
DEPENDS:=+lua +luaposix +bitlib
|
||||||
TITLE:=LuCI core libraries
|
TITLE:=LuCI core libraries
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
|
@ -243,10 +243,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 broadcom = os.execute('grep brcm_ /lib/upgrade/platform.sh >/dev/null 2>&1') == 0
|
|
||||||
local tmpfile = "/tmp/firmware.img"
|
local tmpfile = "/tmp/firmware.img"
|
||||||
|
|
||||||
local keep_avail = not broadcom
|
local keep_avail = true
|
||||||
|
|
||||||
local file
|
local file
|
||||||
luci.http.setfilehandler(
|
luci.http.setfilehandler(
|
||||||
|
|
|
@ -81,10 +81,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 broadcom = os.execute('grep brcm_ /lib/upgrade/platform.sh >/dev/null 2>&1') == 0
|
|
||||||
local tmpfile = "/tmp/firmware.img"
|
local tmpfile = "/tmp/firmware.img"
|
||||||
|
|
||||||
local keep_avail = not broadcom
|
local keep_avail = true
|
||||||
|
|
||||||
local file
|
local file
|
||||||
luci.http.setfilehandler(
|
luci.http.setfilehandler(
|
||||||
|
|
Loading…
Reference in a new issue