new sysupgrade fixes part 2
[project/luci.git] / modules / admin-full / luasrc / view / admin_system / upgrade.htm
index 693022f..8fe658a 100644 (file)
@@ -38,17 +38,22 @@ $Id$
        <p><%:a_s_flash_received%></p>
        
        <% reboot.exec = false
-       for name, func in pairs(flash) do %>
+       for i, entry in ipairs(flash) do 
+               local name, func = entry.name, entry.func %>
                <%:a_s_flash_inprogress%> <%=name%>...
-               <%=string.rep(" ", 2048)%>
+               <%=string.rep(" ", 32*1024)%>
                <%
                 local stat, code = func()
                 reboot.exec = reboot.exec or stat 
                if stat and code then %>
-                       <%:a_s_flash_flashed%><br />
+                       <%:ok%><br />
                <% else %>
                        <%:a_s_flash_flasherr%>! (<%:code%> <%=code%>)<br />    
                <% end %>
+               <% if reboot.exec then %>
+                       <br />
+                       <div><%:a_s_flash_flashed%></div>
+               <% end %>
        <% end %>
 <% else %>
 <div class="error"><%:a_s_flash_notimplemented%></div>