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

<%:Flash operations%>

<%:Backup / Restore%>
<%:Click "Generate archive" to download a tar archive of the current configuration files. To reset the firmware to its initial state, click "Perform reset" (only possible with squashfs images).%>
<% if reset_avail then %>
<% end %>

<%:To restore configuration files, you can upload a previously generated backup archive here.%>

<%:Flash new firmware image%> <% if upgrade_avail then %>
<%:Upload a sysupgrade-compatible image here to replace the running firmware. Check "Keep settings" to retain the current configuration (requires an OpenWrt compatible firmware image).%>
<% if image_invalid then %>
<%:The uploaded image file does not contain a supported format. Make sure that you choose the generic image format for your platform. %>
<% end %>
<% else %>
<%:Sorry, there is no sysupgrade support present; a new firmware image must be flashed manually. Please refer to the OpenWrt wiki for device specific install instructions.%>
<% end %>
<%+footer%>