1
0

upgrade.htm 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 name="content"><%:Flash Firmware%> - <%:Verify%></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. <div class="cbi-section">
  21. <ul>
  22. <li><%:Checksum%><br />
  23. <%:MD5%>: <code><%=checksum%></code><br />
  24. <%:SHA256%>: <code><%=sha256ch%></code></li>
  25. <li><%:Size%>: <%
  26. local w = require "luci.tools.webadmin"
  27. write(w.byte_format(size))
  28. if storage > 0 then
  29. write(luci.i18n.translatef(
  30. " (%s available)",
  31. w.byte_format(storage)
  32. ))
  33. end
  34. %></li>
  35. <li><% if keep then %>
  36. <%:Configuration files will be kept%>
  37. <% else %>
  38. <%:Caution: Configuration files will be erased%>
  39. <% end %></li>
  40. <% if force then %>
  41. <li>
  42. <%:Caution: System upgrade will be forced%>
  43. </li>
  44. <% end %>
  45. </ul>
  46. </div>
  47. <div class="cbi-page-actions right">
  48. <form class="inline" action="<%=REQUEST_URI%>" method="post">
  49. <input type="hidden" name="token" value="<%=token%>" />
  50. <input type="hidden" name="step" value="2" />
  51. <input type="hidden" name="keep" value="<%=keep and "1" or ""%>" />
  52. <input type="hidden" name="force" value="<%=force and "1" or ""%>" />
  53. <input class="cbi-button cbi-button-reset" name="cancel" type="submit" value="<%:Cancel%>" />
  54. <input class="cbi-button cbi-button-apply" type="submit" value="<%:Proceed%>" />
  55. </form>
  56. </div>
  57. <%+footer%>