#!/bin/sh -e

case "$1" in
  configure*)
    if [ ! -L /usr/share/doc/esound -a -d /usr/share/doc/esound ]; then
        set +e
    	if rmdir /usr/share/doc/esound; then
	    ln -s esound-common /usr/share/doc/esound
	fi
	set -e
    fi
    if [ -e /usr/share/debconf/confmodule ] && dpkg --compare-versions "$2" lt "0.2.23-1"; then
	    . /usr/share/debconf/confmodule
	    db_purge
    fi
    ;;
esac

#DEBHELPER#
