<%# LuCI - Lua Configuration Interface Copyright 2008 Steven Barth Copyright 2008 Jo-Philipp Wich Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ -%> <%+header%>

<%:system%>

<%:a_s_flash%>

<%:a_s_flash_upgrade1%>


<% if sysupgrade and not ret then %>
<%:a_s_flash_fwimage%>:


<% if keep_avail then -%> <%:a_s_flash_keepcfg%> <% end -%>
<% 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%>! (<%:code%> <%=ret%>)
<% end %> <% else %>
<%:a_s_flash_notimplemented%>
<% end %> <%+footer%> <% if ret == 0 then luci.sys.reboot() end %>