#! /bin/sh

set -e

case "$1" in
  remove|purge)
    if [ -x /usr/lib/gdm/gdm-set-default-session ] ; then
        /usr/lib/gdm/gdm-set-default-session --remove mythbuntu || true
    fi
    update-alternatives \
            --remove default.plymouth /lib/plymouth/themes/mythbuntu-logo/mythbuntu-logo.plymouth

    rmdir /lib/plymouth/themes || :
    rmdir /lib/plymouth || :

    if which update-initramfs >/dev/null 2>&1
    then
        update-initramfs -u
    fi

    ;;
esac

#DEBHELPER#
