#!/bin/sh

set -e

case "$1" in
    purge)
        # Remove var files
	if [ -e /var/lib/dhcpv6/dhcp6c_duid ]; then
            rm -f /var/lib/dhcpv6/dhcp6c_duid
	fi
	
	if [ -e /etc/default/wide-dhcpv6-client ]; then
            rm -f /etc/default/wide-dhcpv6-client
	fi

	if [ -e /etc/wide-dhcpv6/dhcp6cctlkey ]; then
	    rm -rf /etc/wide-dhcpv6/dhcp6cctlkey
	fi
	;;
    *)
        # Nothing to do...
        ;;
esac

# Automatically added by dh_installinit/13.3.3ubuntu3
if [ "$1" = "purge" ] ; then
	update-rc.d wide-dhcpv6-client remove >/dev/null
fi
# End automatically added section
# Automatically added by dh_installdebconf/13.3.3ubuntu3
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_purge
fi
# End automatically added section


exit 0
