#!/bin/bash

. ${TOOLKIT}-functions.sh

# brscan2 (package per gestione scanner brother MFC-8840DN:
# patch dello script di postrm a cui manca l'exit 0 e quindi
# ne impedisce eventuale rimozione
#
file="/var/lib/dpkg/info/brscan2.postrm"
[ -f $file ] && {
	grep -q "exit 0" $file || {
		echo "  patching $file"
		echo "#[ku]" >>$file
		echo "exit 0" >>$file
	}
}

$SOMETHING_CHANGED && {
	restart_service xinetd xinetd	|| exit $?
	sh /etc/init.d/udev reload	|| exit $?
}

exit 0
