<%# Licensed to the public under the Apache License 2.0. -%> <%+header%> <% local fs = require "nixio.fs" -%>
<%:Check and upgrade firmware from the Internet%>
<% if image_invalid then %>
<%:The image file does not contain a supported format. Maybe try again later.%>
<% end %>
Step 1/3: <%:Check update%>
Step 2/3: <%:Download firmware%>
Step 2/3: <%:Download firmware%>
<% if fs.access("/usr/lib/lua/luci/controller/admin/system.lua") then %>
Step 3/3: <%:Flash image...%>
<% else %>
Step 3/3: <%:Flash image%>
<% end %>

<%:The latest firmware%>:

<%+footer%>