#!/bin/sh -e

myerror ()
{
	echo "ERROR: $1" >&2
	exit 1
}

mywarning ()
{
	echo "WARNING: $1" >&2
}

case "$1" in
	configure)
		# Set permissions on cdemu daemon
		if ! dpkg-statoverride --list /usr/bin/cdemu-daemon >/dev/null; then
		dpkg-statoverride --update --add root cdrom 755 "/usr/bin/cdemu-daemon"
		fi
	;;

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

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

#DEBHELPER#

exit 0
