#
# Logitech Bus Mouse Driver Install Script
#	Paul W. Carlson		Dec. 1988
#
TMP=/tmp/mouse.err
ERROR1=" Errors have been written to the file $TMP."
ERROR2=" The Logitech Bus Mouse Driver software was not installed.
Call Paul Carlson, FTS 832-6795, if you need more information."
echo
echo
echo
echo
echo "                 Installing Logitech Bus Mouse Device Driver"
echo "                                Version 1.00"
echo "                    Author: Paul W. Carlson   FTS 832-6795"
echo
echo

/etc/conf/bin/idcheck -p mouse 2>$TMP
if [ $? != 0 ]
then
    /etc/conf/bin/idinstall -d mouse
fi

/etc/conf/bin/idinstall -a mouse 2>>$TMP
if [ $? != 0 ]
then
    message "There was an error during package installation. $ERROR1 $ERROR2"
    exit 1
fi

/etc/conf/bin/idbuild 2>>$TMP
if [ $? != 0 ]
then
    /etc/conf/bin/idinstall -d mouse
    message "There was an error during Kernel reconfiguration. $ERROR1 $ERROR2"
    exit 1
fi


rm -f $TMP
echo
echo "Installation of the Logitech Bus Mouse Device Driver is complete."
echo
echo
exit 0
