2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb#!/sbin/sh
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb#
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# CDDL HEADER START
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb#
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# The contents of this file are subject to the terms of the
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# Common Development and Distribution License (the "License").
25cf1a301a396c38e8adf52c15f537b80d2483f7jl# You may not use this file except in compliance with the License.
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb#
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# or http://www.opensolaris.org/os/licensing.
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# See the License for the specific language governing permissions
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# and limitations under the License.
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb#
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# When distributing Covered Code, include this CDDL HEADER in each
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# If applicable, add the following below this CDDL HEADER, with the
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# fields enclosed by brackets "[]" replaced with your own identifying
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# information: Portions Copyright [yyyy] [name of copyright owner]
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb#
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# CDDL HEADER END
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb#
a1e4d62bc1ea0bd683c63f185da43cda7aec8f20hshaw
a1e4d62bc1ea0bd683c63f185da43cda7aec8f20hshaw#
a1e4d62bc1ea0bd683c63f185da43cda7aec8f20hshaw# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
a1e4d62bc1ea0bd683c63f185da43cda7aec8f20hshaw# Use is subject to license terms.
a1e4d62bc1ea0bd683c63f185da43cda7aec8f20hshaw#
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# ident "%Z%%M% %I% %E% SMI"
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb#
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# Start script for dcs
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb#
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# For modifying parameters passed to dcs, do not edit
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# this script. Instead use svccfg(1m) to modify the SMF
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# repository. For example:
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb#
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# svccfg
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# svc:> select platform/sun4u/dcs
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# svc:/platform/sun4u/dcs> setprop dcs/ah_auth = "md5"
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb# svc:/platform/sun4u/dcs> exit
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb. /lib/svc/share/smf_include.sh
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mbgetproparg() {
a1e4d62bc1ea0bd683c63f185da43cda7aec8f20hshaw val=`svcprop -p $2 $SMF_FMRI`
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb [ -n "$val" ] && [ "$val" != 'none' ] && echo $1 $val
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb}
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mbDCS=/usr/lib/dcs
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mbplatform=`/sbin/uname -i`
25cf1a301a396c38e8adf52c15f537b80d2483f7jle10k="SUNW,Ultra-Enterprise-10000"
25cf1a301a396c38e8adf52c15f537b80d2483f7jlsf15k="SUNW,Sun-Fire-15000"
25cf1a301a396c38e8adf52c15f537b80d2483f7jlopl="SUNW,SPARC-Enterprise"
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mbargs=""
25cf1a301a396c38e8adf52c15f537b80d2483f7jlif [ $platform = "$sf15k" ]; then
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb args="$args `getproparg -a dcs/ah_auth`"
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb args="$args `getproparg -e dcs/esp_encr`"
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb args="$args `getproparg -u dcs/esp_auth`"
0b05a701b49058a6d47b581827961c6c39b1071amcwalterelif [ $platform = "$opl" ]; then
25cf1a301a396c38e8adf52c15f537b80d2483f7jl args="-l"
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mbfi
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb
25cf1a301a396c38e8adf52c15f537b80d2483f7jlif [ $platform = "$e10k" -o $platform = "$sf15k" -o \
0b05a701b49058a6d47b581827961c6c39b1071amcwalter $platform = "$opl" ]; then
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb $DCS $args # Fail if can't execute
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb exit # Use dcs's exit status
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mbelse
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb echo "$SMF_FMRI is not supported on this platform."
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb exit $SMF_EXIT_ERR_CONFIG
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mbfi
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mb
2eaee53e5b3d4cd48a35cd651c0a8ae149d772c5mbexit 0