#!/bin/sh
#
# Copyright (c) 2002, PerfCap Corporation, Nashua NH
# All Rights Reserved
#-------------------------------------------------------------------

if [ ! -d /opt ]
then
	echo "Creating /opt"
	mkdir /opt
        chown bin:bin /opt
        chmod 0755 /opt
fi

if test -L /usr/bin/cpcunix
then
   rm /usr/bin/cpcunix
fi

if test -f /usr/bin/cpcunix
then
 IMAGE=/usr/bin/cpcunix
 echo " renaming  $IMAGE to  $IMAGE.`date +"%m%h%Y_%H%M"`"
 mv $IMAGE $IMAGE."`date +"%m%h%Y_%H%M"`"
fi

if test -L /usr/bin/ecap_monitor
then
   rm /usr/bin/ecap_monitor
fi

if test -f /usr/bin/ecap_monitor
then
 IMAGE=/usr/bin/ecap_monitor
 echo " renaming  $IMAGE to  $IMAGE.`date +"%m%h%Y_%H%M"`"
 mv $IMAGE $IMAGE."`date +"%m%h%Y_%H%M"`"
fi
exit 0

