Add reboot button
This commit is contained in:
7
www/cgi-bin/reboot
Normal file
7
www/cgi-bin/reboot
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Content-Type: text/html"
|
||||
echo ""
|
||||
echo "<h1>Ciao!</h1>"
|
||||
|
||||
/sbin/reboot
|
||||
21
www/reboot.html
Normal file
21
www/reboot.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
|
||||
<meta charset="UTF-8">
|
||||
</head>
|
||||
|
||||
<body style="background-color: white">
|
||||
|
||||
<div style="padding: 40px">
|
||||
<input type="button" onclick="location.href='/cgi-bin/reboot'" value="Reiniciar router" />
|
||||
</div>
|
||||
|
||||
<div style="padding: 40px">
|
||||
<a style="color: black; font-family: arial, helvetica, sans-serif;" href="/cgi-bin/luci/">LuCI - Lua
|
||||
Configuration Interface</a>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user