#!/bin/sh #Janitor mode to clean up stale stuff DIRECTORY=$(grep ^mythtv /etc/passwd | awk -F : '{print $6}') if [ -f "$DIRECTORY/.mythtv/config.xml" ]; then su mythtv -c "/usr/bin/python /usr/share/mythtv/mythvideo/scripts/jamu.py -MJ >> '/var/log/mythtv/jamu.log'" fi