#!/bin/sh
set -e

if ([ "$1" = remove ] || [ "$1" = purge ]) && \
   test -e /boot/grub/grub.cfg && which update-grub2 > /dev/null ; then
    update-grub2
fi

# Automatically added by dh_installdebconf/12.10ubuntu1
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_purge
fi
# End automatically added section

