summaryrefslogtreecommitdiffstats
path: root/debian/wide-dhcpv6-server.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/wide-dhcpv6-server.postrm')
-rw-r--r--debian/wide-dhcpv6-server.postrm23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/wide-dhcpv6-server.postrm b/debian/wide-dhcpv6-server.postrm
new file mode 100644
index 0000000..7f255d6
--- /dev/null
+++ b/debian/wide-dhcpv6-server.postrm
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ purge)
+ # Remove var files
+ if [ -e /var/lib/dhcpv6/dhcp6s_duid ]; then
+ rm -f /var/lib/dhcpv6/dhcp6s_duid
+ fi
+
+ if [ -e /etc/default/wide-dhcpv6-server ]; then
+ rm -f /etc/default/wide-dhcpv6-server
+ fi
+ ;;
+ *)
+ # Nothing to do...
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0