Skip to content

Instantly share code, notes, and snippets.

@h4cc h4cc/ambipi.txt
Created Dec 21, 2017

Embed
What would you like to do?
ambipi.txt
AmbiPI:/ # cat /storage/hyperion-black-screen.sh
#!/bin/bash
if [ `service hyperion status | grep running | wc -l` = 1 ]
then
hyperion-remote -c black
sleep 3
sudo service hyperion stop
else
sudo service hyperion start
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.