home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume11 / musbus / part01 / Config < prev    next >
Encoding:
Text File  |  1987-09-16  |  853 b   |  35 lines

  1. #! /bin/sh
  2. # $Header: Config,v 3.4 87/06/23 13:53:05 kjmcdonell Beta $
  3. # sh script to extract useful configuration data
  4. if test $# -ne 1
  5. then
  6.     echo "Usage: Config logfile"
  7.     exit 1
  8. fi
  9. tmp=/tmp/$$
  10. echo "MUSBUS - Site Configuration Data for $1"
  11. echo "" >>$tmp
  12. echo "Please answer the following questions ..."
  13. echo "CPU Make and Model Number?"
  14. read x
  15. echo "MC=\"$x\"" >>$tmp
  16. echo "Hardware options, e.g. floating point unit?"
  17. read x
  18. echo "OPT=\"$x\"" >>$tmp
  19. echo "Real Memory (M bytes)?"
  20. read x
  21. echo "MEM=\"$x\"" >>$tmp
  22. echo "Type of UNIX (Vendor name, AT&T System V, BSD 4.x, etc)?"
  23. read type
  24. echo "UNIX Version or Revision Level?"
  25. read version
  26. echo "UNIX=\"$type $version\"" >>$tmp
  27. echo "Disk Configuration (no. of spindles and their type(s))?"
  28. read x
  29. echo "DISKS=\"$x\"" >>$tmp
  30. cat $tmp $1 > ${tmp}a
  31. chmod u+w $1
  32. mv ${tmp}a $1
  33. chmod u-w $1
  34. rm -f ${tmp}*
  35.