#
# Remove script for Smid device driver
#

TMP=/tmp/midi.err
RERR="An error was encountered while removing the Smid Driver Package.
The file $TMP contains errors reported by the system."

echo "Removing Smid Device Driver Package..."

/etc/conf/bin/idinstall -d midi 2> $TMP
if [ $? != 0 ]
then
	message $RERR
	exit 1
fi

/etc/conf/bin/idbuild 2>> $TMP
if [ $? != 0 ]
then
	message $RERR
	exit 1
fi

rm -f $TMP
exit 0
