init
This commit is contained in:
17
cgi-bin/fw-reset.cgi
Executable file
17
cgi-bin/fw-reset.cgi
Executable file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/haserl
|
||||
<%in p/common.cgi %>
|
||||
<%
|
||||
page_title="Erasing Overlay"
|
||||
c="/usr/sbin/sysupgrade -s -n -x"
|
||||
r="true"
|
||||
%>
|
||||
|
||||
<%in p/header.cgi %>
|
||||
<h3 class="alert alert-warning">DO NOT CLOSE, REFRESH, OR NAVIGATE AWAY FROM THIS PAGE UNTIL THE PROCESS IS FINISHED!</h3>
|
||||
<pre id="output" data-cmd="<%= $c %>" data-reboot="<%= $r %>"></pre>
|
||||
|
||||
<script>
|
||||
const el = $('pre#output');
|
||||
runCmd("cmd")
|
||||
</script>
|
||||
<%in p/footer.cgi %>
|
||||
Reference in New Issue
Block a user