#!/bin/sh

set -e

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

if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ] ; then
	update-alternatives \
	    --altdir $BASEDIR/etc/alternatives \
	    --admindir $BASEDIR/var/lib/dpkg/alternatives \
		--remove write /usr/bin/bsd-write

	update-alternatives \
	    --altdir $BASEDIR/etc/alternatives \
	    --admindir $BASEDIR/var/lib/dpkg/alternatives \
		--remove from /usr/bin/bsd-from
fi

#DEBHELPER#
