#!/bin/ksh
#
# ident "@(#)bbexitwebtop.sh	1.1 01/03/19 SMI"
#
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
# 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

