@@ -16,7 +16,7 @@ if ! diff ${LAST_RUN} ${THIS_RUN};then
|
|||||||
echo "The birdnet.conf file has changed"
|
echo "The birdnet.conf file has changed"
|
||||||
echo "Reloading services"
|
echo "Reloading services"
|
||||||
cat ${THIS_RUN} > ${LAST_RUN}
|
cat ${THIS_RUN} > ${LAST_RUN}
|
||||||
until restart_birdnet.sh;do
|
until restart_services.sh;do
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -22,3 +22,7 @@
|
|||||||
<input type="submit" value="Reboot BirdNET-system">
|
<input type="submit" value="Reboot BirdNET-system">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<form action="/scripts/shutdown_system.php">
|
||||||
|
<input type="submit" value="Shutdown BirdNET-system">
|
||||||
|
</form>
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
shell_exec("/home/pi/BirdNET-Lite/scripts/restart_birdnet.sh");
|
shell_exec("/home/pi/BirdNET-Lite/scripts/restart_services.sh");
|
||||||
header('Location: http://birdnetsystem.local/scripts/index.html?success=true');
|
header('Location: http://birdnetsystem.local/scripts/index.html?success=true');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
<?php
|
||||||
|
shell_exec("/home/pi/BirdNET-Lite/scripts/shutdown_system.sh");
|
||||||
|
header('Location: http://birdnetsystem.local/scripts/index.html?success=true');
|
||||||
|
?>
|
||||||
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
sudo shutdown now
|
||||||
@@ -25,12 +25,12 @@ restart_birdnet_analysis.php
|
|||||||
restart_birdnet_analysis.sh
|
restart_birdnet_analysis.sh
|
||||||
restart_birdnet_recording.php
|
restart_birdnet_recording.php
|
||||||
restart_birdnet_recording.sh
|
restart_birdnet_recording.sh
|
||||||
restart_birdnet.sh
|
|
||||||
restart_caddy.php
|
restart_caddy.php
|
||||||
restart_caddy.sh
|
restart_caddy.sh
|
||||||
restart_extraction.php
|
restart_extraction.php
|
||||||
restart_extraction.sh
|
restart_extraction.sh
|
||||||
restart_services.php
|
restart_services.php
|
||||||
|
restart_services.sh
|
||||||
species_notifier.sh
|
species_notifier.sh
|
||||||
uninstall.sh
|
uninstall.sh
|
||||||
update_species.sh
|
update_species.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user