#!/bin/sh
set -e

case "$1" in
    remove|deconfigure)
	if command -v update-alternatives >/dev/null 2>&1; then
		update-alternatives --remove rmt /usr/sbin/rmt-tar
	fi
    ;;
    upgrade|failed-upgrade)
    ;;
    *)
	echo "prerm called with unknown argument \`$1'" >&2
	exit 1
    ;;
esac


