Created
June 19, 2011 07:56
-
-
Save lsolesen/1033910 to your computer and use it in GitHub Desktop.
Settings for mediacenter build using mythtv, xbmc and ubuntu 11.04 natty
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 | |
# | |
# Checks whether the box can be shutdown | |
# | |
IS_XBMC_RUNNING=$(pgrep xbmc) | |
mythshutdown --check | |
MYTHSTATUS=$? | |
if [ $MYTHSTATUS -ne 0 ]; then | |
echo 'Myth is NOT idle' | |
exit 1 | |
else | |
echo 'Myth is idle' | |
fi | |
if [ -z "$IS_XBMC_RUNNING" ]; then | |
echo 'XBMC is NOT running' | |
exit 0 | |
else | |
echo 'XBMC is running' | |
exit 1 | |
fi |
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 | |
# | |
# Automatically grabs program information and fills it into mythtv db | |
# | |
XMLTV_FILE='/home/username/XMLTV/dr_2009.xml' | |
tv_grab_dk_dr_2009 --output $XMLTV_FILE | |
mythfilldatabase --file 1 $XMLTV_FILE | |
mythbackend --resched |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment