1*2eaee53eSmb#!/sbin/sh 2*2eaee53eSmb# 3*2eaee53eSmb# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 4*2eaee53eSmb# Use is subject to license terms. 5*2eaee53eSmb# 6*2eaee53eSmb# CDDL HEADER START 7*2eaee53eSmb# 8*2eaee53eSmb# The contents of this file are subject to the terms of the 9*2eaee53eSmb# Common Development and Distribution License, Version 1.0 only 10*2eaee53eSmb# (the "License"). You may not use this file except in compliance 11*2eaee53eSmb# with the License. 12*2eaee53eSmb# 13*2eaee53eSmb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 14*2eaee53eSmb# or http://www.opensolaris.org/os/licensing. 15*2eaee53eSmb# See the License for the specific language governing permissions 16*2eaee53eSmb# and limitations under the License. 17*2eaee53eSmb# 18*2eaee53eSmb# When distributing Covered Code, include this CDDL HEADER in each 19*2eaee53eSmb# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 20*2eaee53eSmb# If applicable, add the following below this CDDL HEADER, with the 21*2eaee53eSmb# fields enclosed by brackets "[]" replaced with your own identifying 22*2eaee53eSmb# information: Portions Copyright [yyyy] [name of copyright owner] 23*2eaee53eSmb# 24*2eaee53eSmb# CDDL HEADER END 25*2eaee53eSmb# 26*2eaee53eSmb# ident "%Z%%M% %I% %E% SMI" 27*2eaee53eSmb# 28*2eaee53eSmb# Start script for dcs 29*2eaee53eSmb# 30*2eaee53eSmb# For modifying parameters passed to dcs, do not edit 31*2eaee53eSmb# this script. Instead use svccfg(1m) to modify the SMF 32*2eaee53eSmb# repository. For example: 33*2eaee53eSmb# 34*2eaee53eSmb# svccfg 35*2eaee53eSmb# svc:> select platform/sun4u/dcs 36*2eaee53eSmb# svc:/platform/sun4u/dcs> setprop dcs/ah_auth = "md5" 37*2eaee53eSmb# svc:/platform/sun4u/dcs> exit 38*2eaee53eSmb 39*2eaee53eSmb 40*2eaee53eSmb. /lib/svc/share/smf_include.sh 41*2eaee53eSmb 42*2eaee53eSmbFMRI=svc:/platform/sun4u/dcs 43*2eaee53eSmb 44*2eaee53eSmbgetproparg() { 45*2eaee53eSmb val=`svcprop -p $2 $FMRI` 46*2eaee53eSmb [ -n "$val" ] && [ "$val" != 'none' ] && echo $1 $val 47*2eaee53eSmb} 48*2eaee53eSmb 49*2eaee53eSmbDCS=/usr/lib/dcs 50*2eaee53eSmbplatform=`/sbin/uname -i` 51*2eaee53eSmbstarfire="SUNW,Ultra-Enterprise-10000" 52*2eaee53eSmbstarcat="SUNW,Sun-Fire-15000" 53*2eaee53eSmb 54*2eaee53eSmbargs="" 55*2eaee53eSmbif [ $platform = "$starcat" ]; then 56*2eaee53eSmb args="$args `getproparg -a dcs/ah_auth`" 57*2eaee53eSmb args="$args `getproparg -e dcs/esp_encr`" 58*2eaee53eSmb args="$args `getproparg -u dcs/esp_auth`" 59*2eaee53eSmbfi 60*2eaee53eSmb 61*2eaee53eSmbif [ $platform = "$starfire" -o $platform = "$starcat" ]; then 62*2eaee53eSmb $DCS $args # Fail if can't execute 63*2eaee53eSmb exit # Use dcs's exit status 64*2eaee53eSmbelse 65*2eaee53eSmb echo "$SMF_FMRI is not supported on this platform." 66*2eaee53eSmb exit $SMF_EXIT_ERR_CONFIG 67*2eaee53eSmbfi 68*2eaee53eSmb 69*2eaee53eSmbexit 0 70