From 2bbc4eb3c33c3590433174c599ec9418bdb8f38a Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 12 Sep 2008 16:12:23 +0000 Subject: Revert "Redesigned firmware upgrade process" --- modules/admin-mini/luasrc/view/mini/upgrade.htm | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'modules/admin-mini/luasrc/view/mini') diff --git a/modules/admin-mini/luasrc/view/mini/upgrade.htm b/modules/admin-mini/luasrc/view/mini/upgrade.htm index 40f3ec9844..a3d97d6497 100644 --- a/modules/admin-mini/luasrc/view/mini/upgrade.htm +++ b/modules/admin-mini/luasrc/view/mini/upgrade.htm @@ -17,7 +17,7 @@ $Id$

<%:a_s_flash%>

<%:a_s_flash_upgrade1%>


-<% if sysupgrade and ret == nil then %> +<% if sysupgrade and not ret then %>
<%:a_s_flash_fwimage%>:
@@ -33,14 +33,20 @@ $Id$
-<% elseif ret ~= nil then %> - <% if ret then %> -

<%:a_s_flash_received%>

-

<%:a_s_flash_inprogress%>

+<% elseif ret then %> +

<%:a_s_flash_received%>

+

<%:a_s_flash_inprogress%>

+ + + <% %> + <% local ret = ret() + if ret == 0 then %> +
<%:a_s_flash_flashed%>
<% else %> -
<%:a_s_flash_flasherr%>! (<%=err%>)
+
<%:a_s_flash_flasherr%>! (<%:code%> <%=ret%>)
<% end %> <% else %>
<%:a_s_flash_notimplemented%>
<% end %> <%+footer%> +<% if ret == 0 then luci.sys.reboot() end %> -- cgit v1.2.3