<%# Licensed to the public under the Apache License 2.0. Copyright 2024-2025 sirpdboy -%> <%+header%> <% local fs = require "nixio.fs" -%>

<%:OTA%>

<%:Online firmware update instructions: Before expanding and upgrading, use the [Expand Partition]to expand the mnt partition; The remaining space is more than twice that of the firmware expansion; Expansion firmware DD does not retain configuration flashing; Not expanding to the default flashing mode of the system can retain configuration upgrades%>
<% if image_invalid then %>
<%:The image file does not contain a supported format. 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%>