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.
9 <h2 name="content"><%:Flash Firmware%> - <%:Verify%></h2>
11 <%_ The flash image was uploaded.
12 Below is the checksum and file size listed,
13 compare them with the original file to ensure data integrity.<br />
14 Click "Proceed" below to start the flash procedure. %>
16 <% if storage > 0 and size > storage then %>
18 <div class="error"><%:It appears that you are trying to
19 flash an image that does not fit into the flash memory, please verify
20 the image file! %></div>
25 <fieldset class="cbi-section">
27 <li><%:Checksum%><br />
28 <%:MD5%>: <code><%=checksum%></code><br />
29 <%:SHA256%>: <code><%=sha256ch%></code></li>
31 local w = require "luci.tools.webadmin"
32 write(w.byte_format(size))
35 write(luci.i18n.translatef(
37 w.byte_format(storage)
41 <li><% if keep then %>
42 <%:Configuration files will be kept.%>
44 <%:Note: Configuration files will be erased.%>
49 <div class="cbi-page-actions right">
50 <form class="inline" action="<%=REQUEST_URI%>" method="post">
51 <input type="hidden" name="token" value="<%=token%>" />
52 <input type="hidden" name="step" value="2" />
53 <input type="hidden" name="keep" value="<%=keep and "1" or ""%>" />
54 <input class="cbi-button cbi-button-reset" name="cancel" type="submit" value="<%:Cancel%>" />
55 <input class="cbi-button cbi-button-apply" type="submit" value="<%:Proceed%>" />