home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 March B
/
SCO_CASTOR4RRT.iso
/
scoadmin
/
install
/
preremove
< prev
Wrap
Text File
|
1998-08-19
|
9KB
|
252 lines
#!/sbin/sh
#******************************************************************************
# Preremove Script
#------------------------------------------------------------------------------
# Comments:
# Preremove script for the SCOadmin Gemini DK
#
# @(#)preremove 19.1 97/11/13
#
# Copyright (C) The Santa Cruz Operation, 1996.
# This Module contains Proprietary Information of
# The Santa Cruz Operation, and should be treated as Confidential.
#------------------------------------------------------------------------------
# Revision History:
#
# Mon Jan 13 19:10:16 PDT 1997 susanm
# Created file.
#
#===============================================================================
CLASSCONF=/sbin/classconf
OSACONF=/sbin/osaconf
UNIX_SSO=/usr/lib/scoadmin
ADMIN_SSO=/usr/lib/scoadmin
echo "Removing object classes with the scoadmin framework"
# remove the remoteCommand and remoteCopy classes
${CLASSCONF} -D sco remoteCommand rcmdOsa
${CLASSCONF} -D sco remoteCopy rcmdOsa
${OSACONF} -D sco rcmdOsa LOOP_BACK sco_Tcl_osa ${UNIX_SSO}/rcmd/rcmdOsa
# remove the user and users classes
${CLASSCONF} -D sco users userOsa
${CLASSCONF} -D sco user userOsa
${OSACONF} -D sco userOsa LOOP_BACK sco_Tcl_osa ${UNIX_SSO}/user/userOsa
# remove the host classes
${CLASSCONF} -D sco host selhostOsa
${CLASSCONF} -D sco selhost selhostOsa
${OSACONF} -D sco selhostOsa LOOP_BACK sco_Tcl_osa ${ADMIN_SSO}/selhost/selhostOsa
# remove the account, group and rhost classes
${CLASSCONF} -D sco account accountOsa
${CLASSCONF} -D sco accounts accountOsa
${CLASSCONF} -D sco group groupOsa
${CLASSCONF} -D sco groups groupOsa
${CLASSCONF} -D sco rhosts rhostsOsa
${OSACONF} -D sco accountOsa LOOP_BACK sco_Tcl_osa ${UNIX_SSO}/account/account.tlib
${OSACONF} -D sco accounts LOOP_BACK sco_Tcl_osa ${UNIX_SSO}/account/account.tlib
${OSACONF} -D sco groupOsa LOOP_BACK sco_Tcl_osa ${UNIX_SSO}/account/account.tlib
${OSACONF} -D sco groups LOOP_BACK sco_Tcl_osa ${UNIX_SSO}/account/account.tlib
${OSACONF} -D sco rhosts LOOP_BACK sco_Tcl_osa ${UNIX_SSO}/account/rhosts.tlib
echo "Removing the SCOadmin Process Manager object"
/usr/bin/scoadmin -f -d process.obj
echo "Removing the SCOadmin Template object"
/usr/bin/scoadmin -f -d app.obj
# remove the netmgmt classes
${CLASSCONF} -D sco genericrequest netmgmtOsa
${CLASSCONF} -D sco alarm netmgmtOsa
${CLASSCONF} -D sco alarmDB netmgmtOsa
${CLASSCONF} -D sco node netmgmtOsa
${CLASSCONF} -D sco nodeDB netmgmtOsa
${CLASSCONF} -D sco reportrequest netmgmtOsa
${CLASSCONF} -D sco MIBDB netmgmtOsa
${OSACONF} -D sco netmgmtOsa LOOP_BACK sco_Tcl_osa ${ADMIN_SSO}/netmgmt/netmgmtOsa
echo "Removing the SCOadmin Intranet Manager object"
/usr/bin/scoadmin -p Networking -f -d netmgmt.obj
# remove the filesystem osa
${CLASSCONF} -D sco filesystemList filesystemOsa
${CLASSCONF} -D sco filesystem filesystemOsa
${CLASSCONF} -D sco fsMountList filesystemOsa
${CLASSCONF} -D sco fsMount filesystemOsa
${CLASSCONF} -D sco fsAFSOpts filesystemOsa
${CLASSCONF} -D sco fsCDFSOpts filesystemOsa
${CLASSCONF} -D sco fsDOSOpts filesystemOsa
${CLASSCONF} -D sco fsDTFSOpts filesystemOsa
${CLASSCONF} -D sco fsEAFSOpts filesystemOsa
${CLASSCONF} -D sco fsHTFSOpts filesystemOsa
${CLASSCONF} -D sco fsLMCFSOpts filesystemOsa
${CLASSCONF} -D sco fsNFSOpts filesystemOsa
${CLASSCONF} -D sco fsNUCFSOpts filesystemOsa
${CLASSCONF} -D sco fsS51KOpts filesystemOsa
${CLASSCONF} -D sco fsVXFSOpts filesystemOsa
${CLASSCONF} -D sco lmExportList filesystemOsa
${CLASSCONF} -D sco lmExport filesystemOsa
${CLASSCONF} -D sco nfsExportList filesystemOsa
${CLASSCONF} -D sco nfsExport filesystemOsa
${CLASSCONF} -D sco nfsServer filesystemOsa
${CLASSCONF} -D sco nwfsServerList filesystemOsa
${CLASSCONF} -D sco nwfsServer filesystemOsa
${OSACONF} -D sco filesystemOsa LOOP_BACK sco_Tcl_osa ${ADMIN_SSO}/filesystem/filesystemOsa
/bin/touch ${ADMIN_SSO}/filesystem/lock
/bin/chmod 666 ${ADMIN_SSO}/filesystem/lock
${CLASSCONF} -D sco file fileOsa
${CLASSCONF} -D sco directory fileOsa
${OSACONF} -D sco fileOsa LOOP_BACK sco_Tcl_osa ${ADMIN_SSO}/file/fileOsa
# printer OSA
${CLASSCONF} -D sco id-oc-server printerOsa
${CLASSCONF} -D sco id-oc-printer printerOsa
${OSACONF} -D sco printerOsa LOOP_BACK sco_Tcl_osa ${ADMIN_SSO}/printer/printerOsa
#SNMP Agent
${CLASSCONF} -D sco snmpAgent snmpAgentOSA
${OSACONF} -D sco snmpAgent LOOP_BACK sco_Tcl_osa ${ADMIN_SSO}/snmpmgr/snmpAgentOSA
# i18n OSA
${CLASSCONF} -D sco id-oc-i18n i18nOsa
${OSACONF} -D sco i18nOsa LOOP_BACK sco_Tcl_osa ${ADMIN_SSO}/i18n/i18nOsa
echo "Removing the SCOadmin Internationalization Manager object"
/usr/bin/scoadmin -f -p System -d i18n.obj
echo "Removing the SCOadmin Task Scheduler Manager object"
/usr/bin/scoadmin -f -d tasksched.obj
echo "Removing the SCOadmin System Logs Manager object"
/usr/bin/scoadmin -f -p System -d systemlogs.obj
echo "Removing the SCOadmin Accounts Manager object"
/usr/bin/scoadmin -f -d account.obj
echo "Removing the SCOadmin System Status object"
/usr/bin/scoadmin -f -p System -d sysstat.obj
echo "Removing the SCOadmin Defaults Manager object"
/usr/bin/scoadmin -f -p System -d defaults.obj
echo "Removing the SCOadmin Printer Manager object"
/usr/bin/scoadmin -f -d printer.obj
echo "Removing the SCOadmin Shutdown Manager object"
/usr/bin/scoadmin -f -p System -d shutdown.obj
echo "Removing the SCOadmin Printjob Manager object"
/usr/bin/scoadmin -f -d printjob.obj
echo "Removing the SCOadmin Security Profiles Manager object"
/usr/bin/scoadmin -f -p System -d security.obj
echo "Removing the SCOadmin System Tuner object"
/usr/bin/scoadmin -f -p System -d systuner.obj
echo "Removing the SCOadmin System Monitor object"
/usr/bin/scoadmin -f -p System -d sysmonitor.obj
echo "Removing the SCOadmin System Reports Manager object"
/usr/bin/scoadmin -f -p System -d reports.obj
echo "Removing the SCOadmin Filesystem Manager object"
/usr/bin/scoadmin -f -d filesystem.obj
echo "Removing the SCOadmin Setup Wizard object"
/usr/bin/scoadmin -f -d admsetup.obj
echo "Removing the SCOadmin SNMP Agent object"
/usr/bin/scoadmin -f -p Networking -d snmpmgr.obj
echo "Removing the SCOadmin System Time Manager object"
/usr/bin/scoadmin -f -p System -d time.obj
echo "Registering the SCOadmin DCU object"
/usr/bin/scoadmin -f -p Hardware -d dcu.obj
RemoveInet() { # remove SCOadmin inet managers
echo "Removing the SCOadmin Modem Manager object"
/usr/bin/scoadmin -p Hardware -d modem.obj
echo "Removing the SCOadmin Serial Manager object"
/usr/bin/scoadmin -p Hardware -d serial.obj
echo "Removing the SCOadmin Dialin Manager object"
/usr/bin/scoadmin -p Networking -d incoming.obj
echo "Removing the SCOadmin Dialout Manager object"
/usr/bin/scoadmin -p Networking -d outgoing.obj
echo "Removing the SCOadmin Packet Filter Manager object"
/usr/bin/scoadmin -p Networking -d pf.obj
${CLASSCONF} -D sco UUCPsystems uucpOsa
${CLASSCONF} -D sco UUCPdevices uucpOsa
${CLASSCONF} -D sco UUCPlogs uucpOsa
${OSACONF} -D sco uucpOsa
${CLASSCONF} -D sco CallFilter callOsa
${CLASSCONF} -D sco CallService callOsa
${OSACONF} -D sco callOsa
${CLASSCONF} -D sco Serial serialOsa
${CLASSCONF} -D sco SerialPorts serialOsa
${CLASSCONF} -D sco SerialSupport serialOsa
${CLASSCONF} -D sco SerialBoards serialOsa
${OSACONF} -D sco serialOsa
${CLASSCONF} -D sco Modem modemOsa
${CLASSCONF} -D sco ModemVendor modemOsa
${CLASSCONF} -D sco ModemModel modemOsa
${OSACONF} -D sco modemOsa
${CLASSCONF} -D sco packetFilter packetFilterOsa
${OSACONF} -D sco packetFilterOsa
${CLASSCONF} -D sco net netOsa
${OSACONF} -D sco netOsa
}
RemoveSmgt() { # remove SCOadmin SoftwareMgmt managers
echo "Removing the SCOadmin App_Install Manager object"
/usr/bin/scoadmin -p "Software_Management" -d appinst.obj
}
RemoveMail() {
# remove SCOadmin Mail managers
echo "Removing the SCOadmin Mail Manager object"
/usr/bin/scoadmin -f -d mail.obj
echo "Removing the SCOadmin Virtual Domain User Manager object"
/usr/bin/scoadmin -f -d mhome.obj
# remove Vacation desktop data file symlinks
echo "Removing Vacation Manager from the desktop"
LANGS="C de es fr ja"
DTDIR=/etc/dt/appconfig/types
for lang in $LANGS
do
rm -f $DTDIR/$lang/vacation.dt
rm -f $DTDIR/$lang/vacation.fp
done
}
# remove the license manager
RemoveLicense () {
echo "Removing the SCOadmin License Manager object"
/usr/bin/scoadmin -f -d license.obj
}
( RemoveInet ) # remove SCOadmin inet managers
( RemoveSmgt) # remove SCOadmin SoftwareMgmt managers
( RemoveMail ) # remove mail managers
( RemoveLicense ) # remove the license manager