#!/bin/sh
set -e

if [ "$1" = "purge" ]; then
	rm -f /etc/xsp4/debian.webapp
	# purge init.d script
	update-rc.d -f mono-xsp4 remove > /dev/null 2>&1
	# remove default file created in postinst
	rm -f /etc/default/mono-xsp4
fi

# Automatically added by dh_installinit/13.11.4
if [ "$1" = "remove" ] && [ -x "/etc/init.d/mono-xsp4" ] ; then
	chmod -x "/etc/init.d/mono-xsp4" >/dev/null || true
fi
if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = "purge" ] ; then
	update-rc.d mono-xsp4 remove >/dev/null
fi
# End automatically added section
# Automatically added by dh_installdebconf/13.11.4
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_purge
fi
# End automatically added section


exit 0
