<%# Copyright 2008 Steven Barth Copyright 2008-2009 Jo-Philipp Wich Licensed to the public under the Apache License 2.0. -%> <%+header%>

<%:System%>

<%:Flash Firmware%>

<% if step == 1 then %> <% if supported then %>

<%:Upload an OpenWrt image file to reflash the device.%> <% if bad_image then %>

<%:The uploaded image file does not contain a supported format. Make sure that you choose the generic image format for your platform. %>
<% end %>

<%:Firmware image%>:


<% if keepavail then -%> <%:Keep configuration files%> <% end -%>
<% else %>
<%_ Sorry. OpenWrt does not support a system upgrade on this platform.
You need to manually flash your device. %>
<% end %> <% elseif step == 2 then %>

<%_ The flash image was uploaded. Below is the checksum and file size listed, compare them with the original file to ensure data integrity.
Click "Proceed" below to start the flash procedure. %> <% if flashsize > 0 and filesize > flashsize then %>

<%:It appears that you are trying to flash an image that does not fit into the flash memory, please verify the image file! %>
<% end %>

" />
" />
<% elseif step == 3 then %>

<%_ The system is flashing now.
DO NOT POWER OFF THE DEVICE!
Wait a few minutes before you try to reconnect. It might be necessary to renew the address of your computer to reach the device again, depending on your settings. %>

<% end %> <%+footer%>