#!/sbin/sh
#
# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident	"@(#)volmgt	1.9	06/01/20 SMI"

case "$1" in
'start')
	if [ -f /etc/vold.conf -a -f /usr/sbin/vold -a \
	    "${_INIT_ZONENAME:=`/sbin/zonename`}" = "global" ]; then
		echo 'volume management starting.'
		svcadm enable svc:/system/filesystem/volfs:default
	fi
	;;

'stop')
	svcadm disable svc:/system/filesystem/volfs:default
	;;

*)
	echo "Usage: $0 { start | stop }"
	exit 1
	;;

esac
exit 0
