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

  1. #!/sbin/sh
  2. #******************************************************************************
  3. # preremove
  4. #------------------------------------------------------------------------------
  5. # Postinstall script for the SCO Audio Subsystem
  6. #------------------------------------------------------------------------------
  7. # @(#)preremove    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-18, shawnm, created
  14. #===============================================================================
  15.  
  16. CLASSCONF=/sbin/classconf
  17. OSACONF=/sbin/osaconf
  18. AUCFGDIR=/usr/lib/audio/audioconfig
  19. MODADMIN=/sbin/modadmin
  20. MODDIRS="/etc/conf/node.d /etc/conf/pack.d /etc/conf/sdevice.d /etc/conf/.sdevice.d /etc/conf/modnew.d /etc/conf/mod.d"
  21. IDINSTALL=/etc/conf/bin/idinstall
  22. IDCONFUPDATE=/etc/conf/bin/idconfupdate
  23.  
  24. if [ -x ${AUCFGDIR}/cleanup ]; then \
  25.         ${AUCFGDIR}/cleanup; \
  26. fi
  27.  
  28. mv ${AUCFGDIR}/audinfo/config.dat ${AUCFGDIR}/audinfo/config.Z
  29.  
  30. echo "Removing soundon.log"
  31. rm -f /usr/lib/audio/drivers/soundon.log
  32.  
  33. ${IDINSTALL} -d oss
  34.  
  35. # Unload the PnP driver
  36. echo "Unloading PnP driver"
  37. ${MODADMIN} -U PnP
  38. ${IDINSTALL} -d PnP
  39. # Have to do this manually
  40. rm -f /dev/pnp
  41.  
  42. ${IDCONFUPDATE}
  43.  
  44. # Remove PnP and OSS module files
  45. echo "Remove PnP and OSS module files"
  46. for i in ${MODDIRS} ; \
  47. do \
  48.     rm -f $$i/PnP $$i/oss; \
  49. done
  50. rm -f /etc/rc2.d/S96soundon
  51.  
  52. # unregister the audiocard and audioconfig classes
  53. echo "Unregistering object classes with the scoadmin framework"
  54. ${CLASSCONF} -D sco audiocard audioconfig.osa
  55. ${CLASSCONF} -D sco audioconfig audioconfig.osa
  56. ${OSACONF} -D sco audioconfig.osa LOOP_BACK sco_Tcl_osa ${AUCFGDIR}/audioconfig.osa
  57. echo "Done registering object classes with the scoadmin framework"
  58.  
  59. # unregister objects with the scoadmin launchpad
  60. echo "Unregistering the SCOadmin Audio Config Manager object"
  61. /usr/bin/scoadmin -f -d ${AUCFGDIR}/audioconfig.obj
  62. rm -f /usr/lib/PnP.tndx
  63. echo "Done unregistering the SCOadmin Audio Config Manager object"
  64.  
  65.