upgrade.htm 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <%#
  2. Copyright 2008 Steven Barth <steven@midlink.org>
  3. Copyright 2008-2009 Jo-Philipp Wich <jow@openwrt.org>
  4. Licensed to the public under the Apache License 2.0.
  5. -%>
  6. <%+header%>
  7. <h2><a id="content" name="content"><%:Flash Firmware%> - <%:Verify%></a></h2>
  8. <p>
  9. <%_ The flash image was uploaded.
  10. Below is the checksum and file size listed,
  11. compare them with the original file to ensure data integrity.<br />
  12. Click "Proceed" below to start the flash procedure. %>
  13. <% if storage > 0 and size > storage then %>
  14. <br /><br />
  15. <div class="error"><%:It appears that you are trying to
  16. flash an image that does not fit into the flash memory, please verify
  17. the image file! %></div>
  18. <% end %>
  19. </p>
  20. <fieldset class="cbi-section">
  21. <ul>
  22. <li><%:Checksum%>: <code><%=checksum%></code></li>
  23. <li><%:Size%>: <%
  24. local w = require "luci.tools.webadmin"
  25. write(w.byte_format(size))
  26. if storage > 0 then
  27. write(luci.i18n.translatef(
  28. " (%s available)",
  29. w.byte_format(storage)
  30. ))
  31. end
  32. %></li>
  33. <li><% if keep then %>
  34. <%:Configuration files will be kept.%>
  35. <% else %>
  36. <%:Note: Configuration files will be erased.%>
  37. <% end %></li>
  38. </ul>
  39. </fieldset>
  40. <div class="cbi-page-actions right">
  41. <form style="display:inline" action="<%=REQUEST_URI%>" method="post">
  42. <input class="cbi-button cbi-button-reset" type="submit" value="<%:Cancel%>" />
  43. </form>
  44. <form style="display:inline" action="<%=REQUEST_URI%>" method="post">
  45. <input type="hidden" name="step" value="2" />
  46. <input type="hidden" name="keep" value="<%=keep and "1" or ""%>" />
  47. <input class="cbi-button cbi-button-apply" type="submit" value="<%:Proceed%>" />
  48. </form>
  49. </div>
  50. <%+footer%>