From fade8edd2dfe39ae579256d04220aba9da2ff074 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 12 Sep 2008 11:53:08 +0000 Subject: Redesigned firmware upgrade process --- modules/admin-mini/luasrc/view/mini/upgrade.htm | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'modules/admin-mini/luasrc/view') diff --git a/modules/admin-mini/luasrc/view/mini/upgrade.htm b/modules/admin-mini/luasrc/view/mini/upgrade.htm index a3d97d649..40f3ec984 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 not ret then %> +<% if sysupgrade and ret == nil then %>
<%:a_s_flash_fwimage%>:
@@ -33,20 +33,14 @@ $Id$
-<% elseif ret then %> -

<%:a_s_flash_received%>

-

<%:a_s_flash_inprogress%>

- - - <% %> - <% local ret = ret() - if ret == 0 then %> -
<%:a_s_flash_flashed%>
+<% elseif ret ~= nil then %> + <% if ret then %> +

<%:a_s_flash_received%>

+

<%:a_s_flash_inprogress%>

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