# arg 1: the new package version post_install() { update-desktop-database -q /usr/LH/bin/gen_is_xml.py if [ -d /myth/democracy ] then ln -s /myth/democracy /$MYTHHOME/.miro ln -s /myth/miro/Movies /myth/video/Miro exit 1 else if [ -d /myth/miro ] then ln -s /myth/miro /$MYTHHOME/.miro ln -s /myth/miro/Movies /myth/video/Miro exit 1 else if [ ! -d /myth/miro -o /myth/democracy ] then mkdir -p /myth/miro/Movies ln -s /myth/miro /$MYTHHOME/.miro ln -s /myth/miro/Movies /$MYTHHOME/Movies ln -s /myth/miro/Movies /myth/video/Miro fi fi fi chown -R mythtv.mythtv /myth/miro } post_upgrade() { /usr/LH/bin/gen_is_xml.py } post_remove() { update-desktop-database -q rm -fr /$MYTHHOME/.miro /myth/video/Miro /myth/miro /myth/democracy /usr/LH/bin/gen_is_xml.py } . /usr/MythVantage/bin/install_functions.sh home_check op=$1 shift $op $*