#! /bin/sh
# This script restores files back to hardlinks. 
#
#
 
if [ "$ROOTDIR" != "" ]; then
	INSTALLF="installf -R ${ROOTDIR}"
        REMOVEF="removef -R ${ROOTDIR}"
else
	INSTALLF="installf"
        REMOVEF="removef"
fi


PATH="/bin:/usr/bin:/usr/sbin:${PATH}"
export PATH

pkginfo -R $ROOTDIR -q  SUNWcsr
if [ $? -eq 0 ]
then
    ${INSTALLF} -c initd SUNWcsr /etc/init.d/network e > /dev/null 2>&1
    ${INSTALLF} -c initd SUNWcsr /etc/rcS.d/S30network.sh=$ROOTDIR/etc/init.d/network l > /dev/null 2>&1
    ${INSTALLF} -f -c initd SUNWcsr || exit 2
     
fi

exit 0


