home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / audio / install / postinstall < prev    next >
Text File  |  1998-08-19  |  2KB  |  52 lines

  1. #!/sbin/sh
  2. #******************************************************************************
  3. # postinstall
  4. #------------------------------------------------------------------------------
  5. # Postinstall script for the SCO Audio Subsystem
  6. #------------------------------------------------------------------------------
  7. # @(#)postinstall    6.1    97/09/05
  8. # Copyright (C) The Santa Cruz Operation, 1996-1997.
  9. # This Module contains Proprietary Information of
  10. # The Santa Cruz Operation, and should be treated as Confidential.
  11. #------------------------------------------------------------------------------
  12. # Revision History:
  13. # 1997-Jan-15, shawnm, created
  14. #===============================================================================
  15.  
  16. CLASSCONF=/sbin/classconf
  17. OSACONF=/sbin/osaconf
  18. AUCFGDIR=/usr/lib/audio/audioconfig
  19. IDINSTALL=/etc/conf/bin/idinstall
  20. IDBUILD=/etc/conf/bin/idbuild
  21. MODADMIN=/sbin/modadmin
  22. IDCONFUPDATE=/etc/conf/bin/idconfupdate
  23.  
  24. mv ${AUCFGDIR}/audinfo/config.Z ${AUCFGDIR}/audinfo/config.dat
  25.  
  26. # idinstall the PnP Driver
  27. echo "Installing ISA PnP driver"
  28. cd /usr/lib/pnp
  29. ${IDINSTALL} -ak PnP
  30. ${IDBUILD} -M PnP
  31. ${MODADMIN} -l PnP
  32.  
  33. # idinstall the oss Driver
  34. echo "Installing OSS driver"
  35. cd /usr/lib/audio/drivers
  36. ${IDINSTALL} -ak oss
  37. # ${IDBUILD} -M oss
  38.  
  39. # register the audiocard and audioconfig classes
  40. echo "Registering object classes with the scoadmin framework"
  41. ${CLASSCONF} -A sco audiocard audioconfig.osa
  42. ${CLASSCONF} -A sco audioconfig audioconfig.osa
  43. ${OSACONF} -A sco audioconfig.osa LOOP_BACK sco_Tcl_osa ${AUCFGDIR}/audioconfig.osa
  44. echo "Done registering object classes with the scoadmin framework"
  45.  
  46. # register objects with the scoadmin launchpad
  47. echo "Registering the SCOadmin Audio Config Manager object"
  48. /usr/bin/scoadmin -p Hardware -f -c ${AUCFGDIR}/audioconfig.obj
  49. echo "Done registering the SCOadmin Audio Config Manager object"
  50.  
  51.