#!/bin/sh
#
# Copyright 1999 Sun Microsystems, Inc. All rights reserved.
#
# @(#)ss_ts_psetadm.sh	1.3 99/11/17 Sun Microsystems, Inc.
#

setpriv() {
   if [ -d "$1" ]; then
   	for file in `ls $1`
   	do
		if [ -d "$1/$file" ]
		then setpriv "$1/$file"

		elif [ -x "$1/$file" ]
		then setfpriv -s -a all $1/$file
		fi
   	done
   elif [ -x "$1" ]; then
	setfpriv -s -a all $1
   fi
}

OSVERSION=`uname -v`
if [ $OSVERSION = TS7 ]; then
	for dir in /usr/sbin/*skip* /usr/dt/bin/hotjava /usr/bin/htserver /sbin/skiphost /opt/SUNWicg/SunScreen/bin /opt/SUNWicg/SunScreen/lib
	do
	setpriv "$dir"
	done
fi
