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

  1. #ident    "@(#)postremove    1.6"
  2. #!/bin/sh
  3.  
  4. PKGMSG=uvlnuc
  5. ADMINUSER="/usr/bin/adminuser"
  6. GREP="/usr/bin/grep"
  7.  
  8. LOCALE=${LC_ALL:-${LC_MESSAGES:-${LANG:-"C"}}}
  9.  
  10. if [ ! -f /usr/lib/locale/${LOCALE}/LC_MESSAGES/${PKGMSG} ]; then
  11.     if [ -f ${REQDIR}/inst/locale/${LOCALE}/${PKGMSG} -a \
  12.          -d /usr/lib/locale/${LOCALE}/LC_MESSAGES ]; then
  13.         cp ${REQDIR}/inst/locale/${LOCALE}/${PKGMSG} \
  14.            /usr/lib/locale/${LOCALE}/LC_MESSAGES
  15.     fi
  16. fi
  17.  
  18. # modify netconfig to remove the nuc name resolver
  19. sed -e 's/\/usr\/lib\/novell.so/\/usr\/lib\/novell_nwnet.so/' /etc/netconfig >/tmp/nucnetconfig
  20. cp /tmp/nucnetconfig /etc/netconfig
  21.  
  22. cd /etc/conf
  23.  
  24. for i in nuc nucfs nucam NWam climux
  25. do
  26.     /etc/conf/bin/idinstall -d $i
  27. done
  28.  
  29. pfmt -s nostd -g ${PKGMSG}:366 "Reconfiguring the kernel to remove NUC...\n"
  30. /etc/conf/bin/idbuild
  31.  
  32. #Remove the Single Login indicator
  33. rm -f /etc/.slogin
  34.  
  35. #remove nucfs from /etc/dfs/fstypes
  36. #/usr/bin/egrep -v '^nucfs' /etc/dfs/fstypes > /etc/dfs/tmpfstypes && cp /etc/dfs/tmpfstypes /etc/dfs/fstypes
  37.  
  38. ############## REMOVE PROVO-USG ICONS FROM THE HELP DESK #######
  39.  
  40.  
  41. # Remove the smfcnfg.so from setup/filetypes/config
  42. /bin/ed /usr/lib/setup/filetypes/config > /dev/null 2>&1 <<EOT
  43. g/smfcnfg.so/d
  44. w
  45. q
  46. EOT
  47.  
  48. if [ -x /usr/lib/mail/surrcmd/createSurr ]
  49. then
  50.     /usr/lib/mail/surrcmd/createSurr
  51. fi
  52.  
  53. #
  54. # SCOADMIN
  55. #
  56. /usr/bin/scoadmin -p NetWare -d /usr/lib/scoadmin/NetWare/NetWare_Settings.obj
  57. #/usr/bin/scoadmin -p NetWare -d /usr/lib/scoadmin/NetWare/App_Sharing.obj
  58. #/usr/bin/scoadmin -p NetWare -d /usr/lib/scoadmin/NetWare/Launch_Application.obj
  59. #/usr/bin/scoadmin -p NetWare -d /usr/lib/scoadmin/NetWare/Remote_Apps.obj
  60.  
  61. exit 10
  62.