Skip to content

Instantly share code, notes, and snippets.

@lsolesen
Created June 19, 2011 07:56
Show Gist options
  • Save lsolesen/1033910 to your computer and use it in GitHub Desktop.
Save lsolesen/1033910 to your computer and use it in GitHub Desktop.
Settings for mediacenter build using mythtv, xbmc and ubuntu 11.04 natty
#!/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
#!/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