Created
October 26, 2015 21:56
-
-
Save Fma965/c8aee6974353bb50a6cb to your computer and use it in GitHub Desktop.
Openelec Control AVR when suspend/resume.
/storage/.config/sleep.d/ (don't forget to chmod +x it)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
case "$1" in | |
pre) | |
# Set to Server HDZ Input | |
echo 34ZEA | telnet 192.168.2.12 8102 | |
# Turn AVR off | |
echo PF | telnet 192.168.2.12 8102 | |
# Turn HDZ off | |
echo ZEF | telnet 192.168.2.12 8102 | |
;; | |
post) | |
# Turn HDZ on | |
echo ZEO | telnet 192.168.2.12 8102 | |
sleep 3 | |
# Set to HTPC HDZ Input | |
echo 19ZEA | telnet 192.168.2.12 8102 | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment