Skip to content

Instantly share code, notes, and snippets.

@h4cc
Created December 21, 2017 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h4cc/4161d696bc68b9dc1a116eea92a71893 to your computer and use it in GitHub Desktop.
Save h4cc/4161d696bc68b9dc1a116eea92a71893 to your computer and use it in GitHub Desktop.
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