home *** CD-ROM | disk | FTP | other *** search
- #ident "@(#)preinstall 17.4 98/07/28"
- #copyright "%c%"
- #!/usr/bin/sh
-
- # Export any vars we may need to use, obtained from ${1} being automatically
- # dotted in
- export TTY UPD_INSTRM UPD_instrm UPD_INSTRMED UPD_BKUPREST UPDINST
-
- # Load RC Scripts.
- . ${UPDINST}/updpkg.rc
-
- LogMsg "preinstall: `GetText STARTED`"
- DbgMsg "preinstall: STARTED"
-
- #
- # Define trap and trap command for interruption (delete key)
- # of the Update Installation.
- #
- TrapCmd ()
- {
- MsgHandler 1 UpdIntrMsg
- RmExit 3
- }
- trap 'TrapCmd' 2 3 15
-
- #
- # Save the mdevice files, since we need to merge the old and new. This
- # is because we are not doing an idinstall, so may end up with duplicate
- # major/minor device numbers. Save the list of mdevice files to be updated,
- # which changes with each release
- #
- INET_MDEVICE="icmp inet ip rawip udp"
- BASE_MDEVICE="async ca i2omsg i2opt i2otrans hpci kd mc01 mse mtrr \
- postwait resmgr sc01 sdi sp01 sw01"
- VXVM_MDEVICE="vol"
- NSU_MDEVICE="pts ticots ticotsor"
- NWSRVR_MDEVICE="ncpipx sfd"
- NETBIOS_MDEVICE="nb"
- cd /etc/conf/mdevice.d
- ${BIN}/mkdir ${UPDTMP}/mdevice
- for c in ${CLASSES}
- do
- case $c in
- inet)
- ${BIN}/cp ${INET_MDEVICE} ${UPDTMP}/mdevice 2>/dev/null
- DbgMsg " preinstall: saved inet Master files"
- ;;
- base)
- ${BIN}/cp ${BASE_MDEVICE} ${UPDTMP}/mdevice 2>/dev/null
- DbgMsg " preinstall: saved base Master files"
- ;;
- vxvm)
- ${BIN}/cp ${VXVM_MDEVICE} ${UPDTMP}/mdevice 2>/dev/null
- DbgMsg " preinstall: saved vxvm Master files"
- ;;
- nsu)
- ${BIN}/cp ${NSU_MDEVICE} ${UPDTMP}/mdevice 2>/dev/null
- DbgMsg " preinstall: saved nsu Master files"
- ;;
- nwsrvr)
- ${BIN}/cp ${NWSRVR_MDEVICE} ${UPDTMP}/mdevice 2>/dev/null
- DbgMsg " preinstall: saved nwsrvr Master files"
- ;;
- netbios)
- ${BIN}/cp ${NETBIOS_MDEVICE} ${UPDTMP}/mdevice 2>/dev/null
- DbgMsg " preinstall: saved netbios Master files"
- ;;
- esac
- done
- ${BIN}/rmdir ${UPDTMP}/mdevice 2>/dev/null
-
- DbgMsg " preinstall: point of no return if skip was selected"
- echo "UPDCNT=${UPDCNT}" >${UPDCNTFILE}
- DbgMsg " preinstall: UPDCNT=${UPDCNT} now in ${UPDCNTFILE}"
-
- LogMsg "preinstall: `GetText COMPLEXIT` - 0"
- DbgMsg "preinstall: COMPLEXIT - 0"
-
- #
- # Preinstall script addition from update701
- # Scohelp: start up scohelp server after scohelp packaging
- # files have been installed. The server will only
- # be stopped when doing a layered install, not at ISL
- # time. Postinstall will restart it.
- # MRs: ul98-13416 and ul98-03517
- # This was moved from the postinstall 7/13/98.
- #
-
- if [ "$ISL_INSTALL" = "true" ]
- then
-
- :
- else
- if [ -x /etc/scohelphttp ]
- then
- /etc/scohelphttp stop >> /var/adm/log/scohelphttp.log 2>&1
- fi
- fi
-
- exit 0
-