#!/bin/ksh -p
#
# ident "@(#)bbexitwebtop.src	1.3 05/02/17 SMI"
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#

# call the scripts in state.d to save the state of the 
# webtop and shutdown all apps, browser and wm.

. $BBROOT/etc/opt/SUNWbb/blackbox.rc

FILES=`ls $BBPATH/state.d/[0-9][0-9]*`
for f in $FILES; do
	if [ -x $f ]; then
		$f
	fi
done

