Create power_actions.sh

script to check if pogo plug needs to be power down. Pair it with something like this:

$handle = fopen('/home/backup/power_off', 'w');
fwrite($handle, 'Will turn off in under 60 seconds');
fclose($handle);