Problem
I need to determine what video card is installed in my system.
Solution
The following script will scan the video BIOS and print all
strings likely to identify the card and the BIOS version. You
must have full root privileges to run this script.==================================VideoHelp=================================
#!/bin/sh
#
# @(#)VideoHelp.sh 8.2 5/5/97 16:32:43
#
# VideoHelp - create a dump of video BIOS.
# scan for strings likely to identify the card.
#
# This must be executed with root privileges to allow access
# to /dev/mem
#
# This should work on OpenServer or UnixWare, just about
# any SCO OS version.
#
#
AllThere=""FOLD="/usr/bin/fold -s -w 72" VROMDUMP="dd if=/dev/mem skip=768 count=32 bs=1024"
if [ ! -x ${FOLD} ]; then {
FOLD="/usr/bin/xargs /bin/echo"
} fifor i in /bin/strings /usr/bin/egrep /bin/sort /usr/bin/xargs /bin/echo
do
if [ ! -x $i ]; then {
echo "VideoHelp: $i: not found."
AllThere="No"
} fi
doneif [ -z "$AllThere" ]; then {
TmpFile=/tmp/vrom.$$
${VROMDUMP} > ${TmpFile} 2> /dev/null
/bin/strings ${TmpFile} | /bin/sort -u | \
/usr/bin/egrep -i \
"ver|bios|date|rev|\(c\)|copyright|[12][09][06789][0-9]" | ${FOLD}
rm -f ${TmpFile}
} fi==================================End VideoHelp=================================