#!/sbin/sh
#
# @(#) $Revision: 72.9 $
#
# NOTE:    This script is not configurable!  Any changes made to this
#          scipt will be overwritten when you upgrade to the next
#          release of HP-UX.
#
# WARNING: Changing this script in any way may lead to a system that
#          is unbootable.  Do not modify this script.
#

#
# Set privgrp
#

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

rval=0
set_return() {
	x=$?
	if [ $x -ne 0 ]; then
		echo "EXIT CODE: $x"
		rval=1
	fi
}

case $1 in
start_msg)
	echo "Set privilege group"
	;;

'start')
	if [ -f /etc/privgroup ]; then
		/usr/sbin/setprivgrp -f /etc/privgroup
		set_return
	else
		rval=2
	fi
	;;

*)
	echo "usage: $0 {start}"
	rval=1
	;;
esac

exit $rval
