#! /bin/sh
#
#ident	"@(#)postinstall	1.1	95/08/04 SMI"
#
# Copyright (c) 1995 by Sun Microsystems, Inc. All rights reserved.
#
# Postinstall script to start SolarNet daemons after installing patch package
#

# Check for valid run environment
if [ ! -d /usr/bin ] ; then
	exit 0
fi
PATH="/usr/sbin:/usr/bin:/bin"
SNPATH="/opt/SUNWpcnet/1.5/pc/pro/bin"
LICFILE="nfswlsn.exe"
export PATH

# Check for installed start/stop script.  If exists, use it to stop daemons.
if [ -f /etc/init.d/solarnet ] ; then
	echo ""
	echo "   Starting SolarNet daemon processes..."
	echo ""
	/etc/init.d/solarnet start
fi
rm -f $SNPATH/$LICFILE

exit 0
