Fixed stupid bug
authorSteven Barth <steven@midlink.org>
Sat, 6 Sep 2008 19:39:03 +0000 (19:39 +0000)
committerSteven Barth <steven@midlink.org>
Sat, 6 Sep 2008 19:39:03 +0000 (19:39 +0000)
modules/admin-full/luasrc/controller/admin/system.lua
modules/admin-full/luasrc/view/admin_system/upgrade.htm
modules/admin-mini/luasrc/controller/mini/system.lua
modules/admin-mini/luasrc/view/mini/upgrade.htm

index b72b3a7..5d64336 100644 (file)
@@ -214,7 +214,6 @@ function action_upgrade()
        end
 
        luci.template.render("admin_system/upgrade", {sysupgrade=plat, ret=ret, keep_avail=keep_avail})
        end
 
        luci.template.render("admin_system/upgrade", {sysupgrade=plat, ret=ret, keep_avail=keep_avail})
-       luci.sys.reboot()
 end
 
 function _keep_pattern()
 end
 
 function _keep_pattern()
index 569a0bb..a3d97d6 100644 (file)
@@ -48,4 +48,5 @@ $Id$
 <% else %>
 <div class="error"><%:a_s_flash_notimplemented%></div>
 <% end %>
 <% else %>
 <div class="error"><%:a_s_flash_notimplemented%></div>
 <% end %>
-<%+footer%>
\ No newline at end of file
+<%+footer%>
+<% if ret == 0 then luci.sys.reboot() end %>
index 149cd58..6d16ef8 100644 (file)
@@ -111,7 +111,6 @@ function action_upgrade()
        end
 
        luci.template.render("mini/upgrade", {sysupgrade=plat, ret=ret, keep_avail=keep_avail})
        end
 
        luci.template.render("mini/upgrade", {sysupgrade=plat, ret=ret, keep_avail=keep_avail})
-       luci.sys.reboot()
 end
 
 function _keep_pattern()
 end
 
 function _keep_pattern()
index 569a0bb..a3d97d6 100644 (file)
@@ -48,4 +48,5 @@ $Id$
 <% else %>
 <div class="error"><%:a_s_flash_notimplemented%></div>
 <% end %>
 <% else %>
 <div class="error"><%:a_s_flash_notimplemented%></div>
 <% end %>
-<%+footer%>
\ No newline at end of file
+<%+footer%>
+<% if ret == 0 then luci.sys.reboot() end %>