#! /bin/sh
# preinst script for checky
#
# see: dh_installdeb(1)

set -e

case "$1" in
    install|upgrade)
	if dpkg --compare-versions "$2" lt 2.4-4; then
	    # Remove any directory that could be on the way of the link we will create.
	    DIR="/usr/lib/mozilla-firefox/extensions/{770EEDCE-0815-4605-B356-DC660AD089FD}"
	    if [ -d ${DIR} ] && [ ! -L ${DIR} ]; then
	        rm -rf ${DIR}
            fi
	fi
    ;;

    abort-upgrade)

    ;;

    *)
        echo "preinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
