# Install script for driver, detects OS flavour

PRONAME="Advanced NE2000 Compatible Card"
BRDNAME="Advanced NE2000 Compatible Card"
DRVNAME="pnp"

echo "\n"
echo "About to install the ${PRONAME} Ethernet board driver package."
echo "\nPress <Return> to continue : \c"
read answer
case "${answer:-Yes}" in
        [Nn]*)  echo "\nAborted.\n"
                exit 0
                ;;
        *)      echo "\n"
                ;;
esac


if [ -d /etc/copyrights ]

then
        if `grep "Santa Cruz Opera" /etc/copyrights/* >/dev/null 2>&1`
        then
                echo "Installing ${BRDNAME} driver for SCO Unix ..."
                ./install.sco
                exit 0
        fi
        if `grep "Lachman" /etc/copyrights/* >/dev/null 2>&1`
        then
                echo "Installing ${BRDNAME} driver for SCO Unix ..."
                ./install.sco
                exit 0
        fi
fi


if [ -d /usr/options -a -f /usr/options/cb.name ]
then
        if `grep "Core Base" /usr/options/cb.name >/dev/null 2>&1`
        then
                echo "Installing ${BRDNAME} driver for Interactive Unix ..."
                ./install.isc
                exit 0
        fi
fi


echo "\n\n\nCould not determine the os brand."
echo "Press <return> to continue... \c"
read dummy
echo "\n\n"
exit 0


