#!/bin/sh -e
# This script can be called in the following ways:
#
# After the package was removed:
#       <postrm> remove
#
# After the package was purged:
#       <postrm> purge
#
# After the package was upgraded:
#       <old-postrm> upgrade <new-version>
# if that fails:
#       <new-postrm> failed-upgrade <old-version>
#
#
# After all of the packages files have been replaced:
#       <postrm> disappear <overwriting-package> <version>
#
#
# If preinst fails during install:
#       <new-postrm> abort-install
#
# If preinst fails during upgrade of removed package:
#       <new-postrm> abort-install <old-version>
#
# If preinst fails during upgrade:
#       <new-postrm> abort-upgrade <old-version>


case "$1" in
    remove)

	if which plymouth-set-default-theme >/dev/null 2>&1
	then
	    plymouth-set-default-theme text
	fi

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

	;;

    purge)
	;;

    upgrade|failed-upgrade|disappear)
	;;

    abort-install|abort-upgrade)
	;;

    *)
	echo "$0 called with unknown argument \`$1'" 1>&2
	exit 1
	;;
esac

# Automatically added by dh_installdeb/13.11.4
dpkg-maintscript-helper rm_conffile /etc/linuxmint/adjustments/15-gnome-sound.overwrite 2015.07.22~ -- "$@"
# End automatically added section
# Automatically added by dh_installdeb/13.11.4
dpkg-maintscript-helper rm_conffile /etc/linuxmint/adjustments/15-gnome-mimetypes 2015.07.22~ -- "$@"
# End automatically added section
# Automatically added by dh_installdeb/13.11.4
dpkg-maintscript-helper rm_conffile /etc/linuxmint/adjustments/15-gdm3.overwrite 2015.07.22~ -- "$@"
# End automatically added section
# Automatically added by dh_installdeb/13.11.4
dpkg-maintscript-helper rm_conffile /etc/linuxmint/adjustments/15-grub.overwrite 2015.07.22.1~ -- "$@"
# End automatically added section
# Automatically added by dh_installdeb/13.11.4
dpkg-maintscript-helper rm_conffile /etc/xdg/autostart/lmde-xhost-plus.desktop 2015.07.22~ -- "$@"
# End automatically added section
# Automatically added by dh_installdeb/13.11.4
dpkg-maintscript-helper rm_conffile /etc/linuxmint/adjustments/15-opera.overwrite 2015.07.22~ -- "$@"
# End automatically added section
# Automatically added by dh_installdeb/13.11.4
dpkg-maintscript-helper rm_conffile /etc/linuxmint/adjustments/15-mdm.overwrite 2015.07.22~ -- "$@"
# End automatically added section
# Automatically added by dh_installdeb/13.11.4
dpkg-maintscript-helper rm_conffile /etc/linuxmint/adjustments/15-cups-pdf.overwrite 2015.07.22~ -- "$@"
# End automatically added section

exit 0
