home *** CD-ROM | disk | FTP | other *** search
- #! /bin/sh
- # $Header: Config,v 3.4 87/06/23 13:53:05 kjmcdonell Beta $
- # sh script to extract useful configuration data
- if test $# -ne 1
- then
- echo "Usage: Config logfile"
- exit 1
- fi
- tmp=/tmp/$$
- echo "MUSBUS - Site Configuration Data for $1"
- echo "" >>$tmp
- echo "Please answer the following questions ..."
- echo "CPU Make and Model Number?"
- read x
- echo "MC=\"$x\"" >>$tmp
- echo "Hardware options, e.g. floating point unit?"
- read x
- echo "OPT=\"$x\"" >>$tmp
- echo "Real Memory (M bytes)?"
- read x
- echo "MEM=\"$x\"" >>$tmp
- echo "Type of UNIX (Vendor name, AT&T System V, BSD 4.x, etc)?"
- read type
- echo "UNIX Version or Revision Level?"
- read version
- echo "UNIX=\"$type $version\"" >>$tmp
- echo "Disk Configuration (no. of spindles and their type(s))?"
- read x
- echo "DISKS=\"$x\"" >>$tmp
- cat $tmp $1 > ${tmp}a
- chmod u+w $1
- mv ${tmp}a $1
- chmod u-w $1
- rm -f ${tmp}*
-