892
edits
Line 19: | Line 19: | ||
To power up the server simply access this URL: | To power up the server simply access this URL: | ||
* http://room.sudoroom.org/wakemesh. | * http://room.sudoroom.org/wakemesh.php | ||
This will cause the server to boot using wake on lan. Bootup takes a few minutes. | This will cause the server to boot using wake on lan. Bootup takes a few minutes. | ||
Line 26: | Line 26: | ||
sudo shutdown -h now | sudo shutdown -h now | ||
= wake server script = | |||
Here is the wake-up script we use: | |||
<pre> | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<title>sudo mesh build server wakeup</title> | |||
<style type="text/css"> | |||
body, html { | |||
font-family: sans-serif; | |||
padding: 0.8em 2.5em; | |||
} | |||
</style> | |||
</head> | |||
<body> | |||
<h1>sudo mesh build server wakeup</h1> | |||
<?php | |||
if($_POST["wake"]) { | |||
echo("<h3>Waking sudo mesh build server.</h3>"); | |||
exec("/usr/bin/powerwake 00:14:22:b0:25:c2"); | |||
} else { | |||
?> | |||
<form action="wakemesh.php" method="POST"> | |||
<input name="wake" type="submit" value="Click here to wake the server" /> | |||
</form> | |||
<?php | |||
} | |||
?> | |||
</body> | |||
</html> | |||
</pre> |