#!/bin/sh

currentdir=$PWD

undoConfig(){
	#**********************************************
	# replacing pmcd security
	#**********************************************
	if [ -d /var/pcp/config/pmcd/ ] ; then
		cd /var/pcp/config/pmcd/
		cp -p pmcd.conf.${1}.save pmcd.conf
	fi
	#**********************************************
	# just leave the pmns alone
	#**********************************************
	cd ${currentdir}
}

case "${1}" in
	cdf|d0|ft|pro|generic)
		undoConfig ${1}
	;;
	*)
		echo "  Usage: uninstall-pcp-config <cdf|d0|ft|pro|generic> "
		exit 1
	;;
esac
exit 0
