svc-rbac revision c11c3631128bd03ca6eb2504d1d2c1b5ec1c130f
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
export PKGINST
if [ ! -x $irbac ]
then
echo "${irbac}: not found."
exit $SMF_EXIT_ERR_FATAL
fi
case "$1" in
;;
stop)
exit $SMF_EXIT_OK;;
*)
echo "Usage: $0 { start | refresh | stop }"
exit $SMF_EXIT_ERR_FATAL;;
esac
do
d=${f}.d
if [ ! -d ${d} ]
then
# No directory, nothing to do
continue
fi
#
# List all the files in the directory and the destination file
# in the order of their timestamp. Most recent files are
# displayed first. When we find the destination file, we're
# done as the rest of the files are older and they are already
# incorporated.
#
update=0
do
if [ "$frag" = "$f" ]
then
break
fi
if [ -f "$frag" ]
then
update=1
fi
done
then
chown $ownergroup $f
fi
done
exit $SMF_EXIT_OK