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

index ba592da2b9e524addbed487dffa86bd257bc3b67..5d6037151e711aa6098269c61ead21a53f62ba15 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 3a5f12c527dabf3a3522c23619addec8f1fb56eb..ac6d64b32bbba2f4fa1d0759e9fe35d20f58b7f3 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(