#!/bin/ksh # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # 61pkgha_r714 src/packages/cluster/adt/es/client/include/usr/cluster.adt.es.client.include.unconfig.sh 1.10.1.2 # # Licensed Materials - Property of IBM # # COPYRIGHT International Business Machines Corp. 1999,2013 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG # @(#)13 1.10.1.2 src/packages/cluster/adt/es/client/include/usr/cluster.adt.es.client.include.unconfig.sh, pkghacmp, 61pkgha_r714 3/4/13 15:10:58 ############################################################################### # # Name: onintr # # Rudimentary signal handler # # Arguments: none # Returns: 5 - exit with error # Environment: interrupt handler # ############################################################################### onintr() { echo "$0: Caught signal - exiting" exit 5 } ############################################################################### ################################### MAIN ###################################### ############################################################################### # # Setup a rudimentary PATH # PATH=/bin:/usr/bin:/usr/sbin # # Establish a signal handler # trap onintr 1 2 3 15 # # Remove symbolic links created at install time by the config script # ESDIR="/usr/es/include/cluster" LNDIR=$(echo ${ESDIR} | sed "s:/es/:/:") if [[ -d ${ESDIR} && -d ${LNDIR} ]]; then cd ${ESDIR} for file in $(ls | grep -v '^\.') do LNFILE="${LNDIR}/${file}" if [[ -L "${LNFILE}" ]]; then rm -f ${LNFILE} fi done fi exit 0