#
# ident "@(#)preremove.src	1.3 05/05/21 SMI"
#
# Copyright 2004-2005 Sun Microsystems, Inc.  All Rights Reserved.
# Use is subject to licence terms.
#

PATH=/bin:/sbin:/usr/sbin

if [ -z "$PKG_INSTALL_ROOT" ]; then PKG_INSTALL_ROOT=""; fi

set -u

#
# kill storage service daemons if alive 
# This should only be done when installing on the local system
#

if [ -z "$PKG_INSTALL_ROOT" ]; then
	if [ -x /etc/init.d/utstorage ]; then
		/etc/init.d/utstorage stop
	fi
fi

echo "### successfully ended Sun Ray storage services"

exit 0
