#!/bin/sh
#

echo      "The following links from the SUNWvolr package are being removed."


if [ "$ROOTDIR" != "" ]; then
	REMOVEF="removef -R ${ROOTDIR}"
else
	REMOVEF="removef"
fi

${REMOVEF} SUNWvolr /etc/rcS.d/K35volmgt

${REMOVEF} SUNWvolr /etc/rc2.d/S92volmgt

${REMOVEF} SUNWvolr /etc/rc1.d/K35volmgt 

${REMOVEF} SUNWvolr /etc/rc0.d/K35volmgt

${REMOVEF} -f SUNWvolr || exit 2


if [ "$ROOTDIR" != "" ]; then
	INSTALLF="installf -R ${ROOTDIR}"
else
	INSTALLF="installf"
fi

	${INSTALLF} -c initd SUNWvolr /etc/rc0.d/K05volmgt=/etc/init.d/volmgt

	${INSTALLF} -c initd SUNWvolr /etc/rc1.d/K05volmgt=/etc/init.d/volmgt
	
	${INSTALLF} -c initd SUNWvolr /etc/rc2.d/K05volmgt=/etc/init.d/volmgt

	${INSTALLF} -c initd SUNWvolr /etc/rc3.d/S81volmgt=/etc/init.d/volmgt

	${INSTALLF} -c initd SUNWvolr /etc/rcS.d/K05volmgt=/etc/init.d/volmgt

${INSTALLF} -f SUNWvolr
