#
# ATT&T VDC600 DAC Device Driver
#	Paul W. Carlson		Nov. 1988
#
TMP=/tmp/dac.err
ERROR1=" Errors have been written to the file $TMP."
ERROR2=" The AT&T VDC600 DAC Driver software was not installed.
Call Paul Carlson, FTS 832-6795, if you need more information."
echo
echo
echo
echo
echo "              Installing AT&T VDC600 Digital-Analog Converter Driver"
echo "                                Version 1.06"
echo "                    Author: Paul W. Carlson   FTS 832-6795"
echo
echo

# Check if driver is already installed
/etc/conf/bin/idcheck -p dac 2>$TMP
if [ $? != 0 ]
then
    /etc/conf/bin/idinstall -d dac
fi

# If it isn't, install the driver installation package
/etc/conf/bin/idinstall -a dac 2>>$TMP
if [ $? != 0 ]
then
    message "There was an error during package installation. $ERROR1 $ERROR2"
    exit 1
fi

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

rm -f $TMP
echo
echo "Installation of the AT&T VDC600 DAC Driver is complete."
echo
echo
exit 0
