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

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