#!/bin/sh
#
# ident	"@(#)preinstall	1.3	95/01/13 SMI"
#
# Copyright (c) 1995 Sun Microsystems Inc. All rights reserved.
#
# Pre-install script to stop DHCP daemon before install
#

# Check for valid run environment
if [ ! -d /usr/bin ] ; then
	exit 0
fi
PATH="/usr/sbin:/usr/bin:/bin"
export PATH

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

exit 0
