#! /bin/sh
#
#Remove symbolic links in SUNWsc introduced by the patch
#(workaround for patchrm bug, where new symlinks do not get removed)
 
[ "$ROOTDIR" = / ] && ROOTDIR=""
TOP=$ROOTDIR/opt/SUNWcluster/etc/reconf/conf.d
SYMLINKS='rc12.d/90_rpcbindmon rcA.d/90_rpcbindmon rcK.d/90_rpcbindmon rcR.d/90_rpcbindmon'
 
for i in `echo $SYMLINKS`; do
        if [ -h $TOP/$i ]; then
           rm -f $TOP/$i
           removef SUNWsc $TOP/$i
           removef -f SUNWsc
        fi
done
exit 0
