11120Smb158278#!/sbin/sh 21120Smb158278# 31120Smb158278# CDDL HEADER START 41120Smb158278# 51120Smb158278# The contents of this file are subject to the terms of the 61772Sjl139090# Common Development and Distribution License (the "License"). 71772Sjl139090# You may not use this file except in compliance with the License. 81120Smb158278# 91120Smb158278# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 101120Smb158278# or http://www.opensolaris.org/os/licensing. 111120Smb158278# See the License for the specific language governing permissions 121120Smb158278# and limitations under the License. 131120Smb158278# 141120Smb158278# When distributing Covered Code, include this CDDL HEADER in each 151120Smb158278# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 161120Smb158278# If applicable, add the following below this CDDL HEADER, with the 171120Smb158278# fields enclosed by brackets "[]" replaced with your own identifying 181120Smb158278# information: Portions Copyright [yyyy] [name of copyright owner] 191120Smb158278# 201120Smb158278# CDDL HEADER END 211120Smb158278# 22*2589Shshaw 23*2589Shshaw# 24*2589Shshaw# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 25*2589Shshaw# Use is subject to license terms. 26*2589Shshaw# 271120Smb158278# ident "%Z%%M% %I% %E% SMI" 281120Smb158278# 291120Smb158278# Start script for dcs 301120Smb158278# 311120Smb158278# For modifying parameters passed to dcs, do not edit 321120Smb158278# this script. Instead use svccfg(1m) to modify the SMF 331120Smb158278# repository. For example: 341120Smb158278# 351120Smb158278# svccfg 361120Smb158278# svc:> select platform/sun4u/dcs 371120Smb158278# svc:/platform/sun4u/dcs> setprop dcs/ah_auth = "md5" 381120Smb158278# svc:/platform/sun4u/dcs> exit 391120Smb158278 401120Smb158278 411120Smb158278. /lib/svc/share/smf_include.sh 421120Smb158278 431120Smb158278getproparg() { 44*2589Shshaw val=`svcprop -p $2 $SMF_FMRI` 451120Smb158278 [ -n "$val" ] && [ "$val" != 'none' ] && echo $1 $val 461120Smb158278} 471120Smb158278 481120Smb158278DCS=/usr/lib/dcs 491120Smb158278platform=`/sbin/uname -i` 501772Sjl139090e10k="SUNW,Ultra-Enterprise-10000" 511772Sjl139090sf15k="SUNW,Sun-Fire-15000" 521772Sjl139090opl="SUNW,SPARC-Enterprise" 531120Smb158278 541120Smb158278args="" 551772Sjl139090if [ $platform = "$sf15k" ]; then 561120Smb158278 args="$args `getproparg -a dcs/ah_auth`" 571120Smb158278 args="$args `getproparg -e dcs/esp_encr`" 581120Smb158278 args="$args `getproparg -u dcs/esp_auth`" 592117Smcwalterelif [ $platform = "$opl" ]; then 601772Sjl139090 args="-l" 611120Smb158278fi 621120Smb158278 631772Sjl139090if [ $platform = "$e10k" -o $platform = "$sf15k" -o \ 642117Smcwalter $platform = "$opl" ]; then 651120Smb158278 $DCS $args # Fail if can't execute 661120Smb158278 exit # Use dcs's exit status 671120Smb158278else 681120Smb158278 echo "$SMF_FMRI is not supported on this platform." 691120Smb158278 exit $SMF_EXIT_ERR_CONFIG 701120Smb158278fi 711120Smb158278 721120Smb158278exit 0 73