Commit e4b2d3cb authored by anne munoz's avatar anne munoz Committed by Adam Wujek

www: reset updated

added descriptive text and reboot screen
parent c3b7935e
......@@ -1434,7 +1434,8 @@ function get_encrypt_salt($enc_password){
**/
function resetswitch(){
shell_exec("make -C /wr/etc/ defconfig");
shell_exec("reboot");
shell_exec("reboot");
wrs_reboot();
}
/**
......
......@@ -22,6 +22,9 @@
<?php
session_is_started();
?>
<p>This will reset your switch to the default state</p>
<br>
<FORM method="POST" ENCTYPE="multipart/form-data" onsubmit="return confirm('Are you sure you want to reset the switch?');">
<th><INPUT type=submit value="Reset" class="btn" name="reset" ></th>
</FORM>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment