Commit 0f265dfd authored by José Luis  Gutiérrez's avatar José Luis Gutiérrez Committed by Alessandro Rubini

/var/www/exe_program.php adding halt-reboot-mount

Local Management Tool adition of new features to exe_program.php
	- Rebooting switch
	- Halting system
	- Remounting filesystem as RW
	- Remounting filesystem as RO
parent b5ce50f2
......@@ -16,11 +16,19 @@
if(!strcmp($cmd, "halt")){
echo '<br><br><br></be>System is halting';
$output = shell_exec($cmd);
}else if (!strcmp($cmd, "reboot")){
echo '<br><br><br>System is rebooting. Please wait 30 seconds.';
$output = shell_exec($cmd);
}else if (!strcmp($cmd, "rw")){
$output = shell_exec("/wr/bin/wrfs_mnt.sh rw");
echo '<br><br><br>Partition mounted as rw';
}else if (!strcmp($cmd, "ro")){
$output = shell_exec("/wr/bin/wrfs_mnt.sh ro");
echo '<br><br><br>Partition mounted as ro';
}
$output = shell_exec($cmd);
?>
......
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