home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / mcis / install / preremove < prev   
Text File  |  1998-08-19  |  575b  |  25 lines

  1. #ident    "@(#)pkg.ihvhba:i386/pkg/ihvhba/mcis/preremove    1.5"
  2. #ident    "$Header:  $"
  3.  
  4. CONFDIR=/etc/conf
  5. CONFBIN=${CONFDIR}/bin
  6.  
  7. for MODULE in $PKGINST
  8. do
  9.         ${CONFBIN}/idcheck -p ${MODULE}
  10.         RES="$?"
  11.         if
  12.                 [ "${RES}" -ne "100" -a "${RES}" -ne "0" ]
  13.         then
  14.         ${CONFBIN}/idinstall -P ${PKGINST} -d ${MODULE} 2>> /tmp/${MODULE}.err
  15.         fi
  16.     rm -f /usr/include/sys/${i}.h
  17. done
  18.  
  19. sed -e "/^6:1:${PKGINST}:${PKGINST}$/d" /etc/loadmods >/tmp/$$.loadmods
  20. mv /tmp/$$.loadmods /etc/loadmods
  21. removef $PKGINST /etc/loadmods
  22. removef -f $PKGINST
  23.  
  24. exit 0
  25.