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

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