This commit is contained in:
Dmitri Popov
2019-02-11 21:58:08 +01:00
parent 9c458c0e68
commit d4b83e856e
4 changed files with 56 additions and 0 deletions

View File

@@ -33,6 +33,12 @@
<button name="camerabackup">Camera backup</button>
</form>
</p>
<p>Activate the DLNA server</p>
<p>
<form method="post">
<button name="minidlna">DLNA server</button>
</form>
</p>
<p class="left">Shut down the Little Backup Box</p>
<p>
<form method="post">
@@ -53,6 +59,10 @@ if (isset($_POST['camerabackup']))
{
shell_exec('sudo ./camera-backup.sh 2>&1 & echo $!');
}
if (isset($_POST['minidlna']))
{
shell_exec('sudo ./minidlna.sh 2>&1 & echo $!');
}
if (isset($_POST['shutdown']))
{
shell_exec('sudo shutdown -h now 2>&1 & echo $!');