<%# LuCI - Lua Configuration Interface Copyright 2008 Steven Barth Copyright 2008-2009 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: upgrade.htm 4487 2009-05-09 03:23:42Z jow $ -%> <%+header%>

<%:system%>

<%:admin_upgrade Flash Firmware%>

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

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

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

<%:admin_upgrade_fwimage Firmware image%>:


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

<%:admin_upgrade_uploaded 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 %>

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

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

<%:admin_upgrade_running The system is flashing now.
DO NOT POWER OFF THE DEVICE!
Wait a few minutes until 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%>