mmupgrade.htm 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <%#
  2. LuCI - Lua Configuration Interface
  3. Copyright 2008 Mikeqin <Fenling.Qin@gmail.com>
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. $Id$
  9. -%>
  10. <%+header%>
  11. <h2><a id="content" name="content"><%:Upgrade MM Firmware%> - <%:Verify%></a></h2>
  12. <p>
  13. <%_ The firmware was uploaded.
  14. Below is the checksum and file size listed,
  15. compare them with the original file to ensure data integrity.<br />
  16. Click "Proceed" below to start the flash procedure. %>
  17. <% if storage > 0 and size > storage then %>
  18. <br /><br />
  19. <div class="error"><%:It appears that you try to
  20. flash an firmware that does not fit into the flash memory, please verify
  21. the firmware file! %></div>
  22. <% end %>
  23. </p>
  24. <fieldset class="cbi-section">
  25. <ul>
  26. <li><%:Checksum%>: <code><%=checksum%></code></li>
  27. <li><%:Size%>: <%
  28. local w = require "luci.tools.webadmin"
  29. write(w.byte_format(size))
  30. if storage > 0 then
  31. write(luci.i18n.translatef(
  32. " (%s available)",
  33. w.byte_format(storage)
  34. ))
  35. end
  36. %></li>
  37. </ul>
  38. </fieldset>
  39. <div class="cbi-page-actions right">
  40. <form style="display:inline" action="<%=REQUEST_URI%>" method="post">
  41. <input class="cbi-button cbi-button-reset" type="submit" value="<%:Cancel%>" />
  42. </form>
  43. <form style="display:inline" action="<%=REQUEST_URI%>" method="post">
  44. <input type="hidden" name="step" value="2" />
  45. <input class="cbi-button cbi-button-apply" type="submit" value="<%:Proceed%>" />
  46. </form>
  47. </div>
  48. <%+footer%>