<%# Copyright 2008 Steven Barth Copyright 2008-2015 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.%>
<% if reset_avail then %>
<%:Custom files (certificates, scripts) may remain on the system. To prevent this, perform a factory-reset first.%>
<% end %>

<%: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 a 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 wiki for device specific install instructions.%>
<% end %>
<%+footer%>