X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fadmin-full%2Fluasrc%2Fview%2Fadmin_system%2Fupgrade.htm;fp=modules%2Fadmin-full%2Fluasrc%2Fview%2Fadmin_system%2Fupgrade.htm;h=8fe658a4278f938bb47d3764472e6f3524f39b65;hp=693022f3231e44f11cd5a4327c2bd3075539e40e;hb=8f5d0d6ff5a1cbb40eccce5eeb99d5249bab5159;hpb=5067e2d185bbd1fdf029a8da2a84895bbccfad02 diff --git a/modules/admin-full/luasrc/view/admin_system/upgrade.htm b/modules/admin-full/luasrc/view/admin_system/upgrade.htm index 693022f32..8fe658a42 100644 --- a/modules/admin-full/luasrc/view/admin_system/upgrade.htm +++ b/modules/admin-full/luasrc/view/admin_system/upgrade.htm @@ -38,17 +38,22 @@ $Id$

<%:a_s_flash_received%>

<% 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%>
+ <%:ok%>
<% else %> <%:a_s_flash_flasherr%>! (<%:code%> <%=code%>)
<% end %> + <% if reboot.exec then %> +
+
<%:a_s_flash_flashed%>
+ <% end %> <% end %> <% else %>
<%:a_s_flash_notimplemented%>