+# Clear the debconf database as early as possible and signal debconf that
+# we are done with it.
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+ db_stop
+fi
+
+remove_dangling_symlinks() {
+ if ! [ -d /etc/ssl/certs ]
+ then
+ return
+ fi
+ echo -n "Removing dangling symlinks from /etc/ssl/certs... "
+ find /etc/ssl/certs -type l -print | while read h
+ do
+ test -f "$h" || rm -f "$h"
+ done
+ echo "done."
+}
+