Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
e4b2d3cb
Commit
e4b2d3cb
authored
Mar 01, 2017
by
anne munoz
Committed by
Adam Wujek
Aug 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
www: reset updated
added descriptive text and reboot screen
parent
c3b7935e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
functions.php
userspace/rootfs_override/var/www/functions.php
+2
-1
reset.php
userspace/rootfs_override/var/www/reset.php
+3
-0
No files found.
userspace/rootfs_override/var/www/functions.php
View file @
e4b2d3cb
...
...
@@ -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
();
}
/**
...
...
userspace/rootfs_override/var/www/reset.php
View file @
e4b2d3cb
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment