-#!/bin/sh -e
+#!/bin/sh
# postrm for beep
+# copyright 2002-2011 by Gerfried Fuchs <rhonda@debian.org>
+# Licenced under WTFPLv2
-if [ "$1" = purge -a -e /usr/share/debconf/confmodule ]; then
+set -e
+
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi