<%# 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%>

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