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

  1. #ident    "@(#)pkg.osmp:ifiles/preremove    1.1.2.5"
  2.  
  3. FAILURE=1
  4.  
  5. #now check to see whether a PSM installed by OSMP is already
  6. #configured
  7.  
  8. for i in mps compaq cbus
  9. # for i in ast mps cbus compaq tricord olivetti
  10. do
  11.     /etc/conf/bin/idcheck -p $i
  12.     rc=$?
  13.     [ "$UPDEBUG" = YES ] && {
  14.       echo "idcheck of " $i " returned " ${rc}
  15.       goany
  16.     }
  17.  
  18.     [ "${rc}" != "0" -a "${rc}" != "100" ] && {
  19.       # driver was configured;  remove it if sdevice contains
  20.       # $interface psm (watch out for silly name conflict)
  21.  
  22.       if grep interface /etc/conf/mdevice.d/$i | grep psm
  23.       then
  24.         /etc/conf/bin/idinstall -P osmp -d $i
  25.       fi 1>/dev/null 2>/dev/null
  26.     }
  27. done
  28.  
  29. #
  30. # remove the processor setup GUI
  31. #
  32. GUI=psrsetup
  33. /usr/bin/scoadmin -p Hardware -d "$GUI".obj
  34. /sbin/osaconf -D sco "$GUI"Osa
  35. /sbin/classconf -D sco $GUI "$GUI"Osa
  36.  
  37. /usr/bin/ed /etc/conf/cf.d/deflist > /dev/null 2>&1 << EOT
  38. s/-UUNIPROC/-DUNIPROC/g
  39. w
  40. q
  41. EOT
  42.  
  43. # reset kernel build type to single-processor and rebuild kernel
  44. /etc/conf/bin/idtype atup 1>/dev/null 2>/dev/null
  45. /etc/conf/bin/idbuild 1>/dev/null 2>/dev/null
  46. [ "$?" != "0" ] && {
  47.     exit ${FAILURE}
  48. }
  49.  
  50. exit 10
  51.