#
# EGA Driver Remove Script
#	Paul W. Carlson		Jan. 1989
#
TMP=/tmp/ega.err
RERR="An error was encountered removing the EGA Device Driver.
Errors have been written to the file $TMP.
Call Paul Carlson, FTS 832-6795, if you need more information."
echo
echo
echo
echo
echo "                 		Removing EGA Device Driver"
echo
echo

# Remove the driver installation files
/etc/conf/bin/idinstall -d ega 2>$TMP
if [ $? != 0 ]
then
    message $RERR
    exit 1
fi

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

rm -f $TMP
echo
echo "                              Removal complete."
echo
echo
exit 0
