Broadcom should handle keep_avail now
authorSteven Barth <steven@midlink.org>
Wed, 24 Sep 2008 22:37:49 +0000 (22:37 +0000)
committerSteven Barth <steven@midlink.org>
Wed, 24 Sep 2008 22:37:49 +0000 (22:37 +0000)
modules/admin-full/luasrc/controller/admin/system.lua
modules/admin-mini/luasrc/controller/mini/system.lua

index 981d6255f28c4fea8bb7f09bbdf9b5a2929f8e2e..415131c8d8df5128def185d1d2bdc4e4425f1f9c 100644 (file)
@@ -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(
index a07918518f1f35fa5ad07e51782224c8e7429d62..e61d0a05cfc87dcccd9031415a610dc80ccc97f4 100644 (file)
@@ -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(