#! /bin/bash -e

if [ "${BASEDIR:=/}" = "/" ]; then
    BASEDIR=""
fi

if test -z "$2" && test ! -f ${BASEDIR}/etc/shells
then
        cp -p ${BASEDIR}/usr/share/debianutils/shells ${BASEDIR}/etc/shells
fi

case "$1" in
    configure)
#    if which update-mime >/dev/null;
#    then
#	    update-mime
#    fi
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)

    ;;

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