From 72b500bee7e94da06faf15b3dfec9296404612ba Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 15 Aug 2008 00:44:13 +0000 Subject: modules/*: Reintroduced the broadcom sanity check --- modules/admin-full/luasrc/controller/admin/system.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/admin-full/luasrc/controller/admin/system.lua') diff --git a/modules/admin-full/luasrc/controller/admin/system.lua b/modules/admin-full/luasrc/controller/admin/system.lua index cdf7ee2c64..4303d86ebf 100644 --- a/modules/admin-full/luasrc/controller/admin/system.lua +++ b/modules/admin-full/luasrc/controller/admin/system.lua @@ -184,8 +184,9 @@ function action_upgrade() local ret = nil local plat = luci.fs.mtime("/lib/upgrade/platform.sh") local tmpfile = "/tmp/firmware.img" - - local keep_avail = true + local broadcom = os.execute('grep brcm_ /lib/upgrade/platform.sh >/dev/null 2>&1') == 0 + + local keep_avail = not broadcom local file luci.http.setfilehandler( -- cgit v1.2.3