12eaee53eSmb#!/sbin/sh 22eaee53eSmb# 32eaee53eSmb# CDDL HEADER START 42eaee53eSmb# 52eaee53eSmb# The contents of this file are subject to the terms of the 625cf1a30Sjl# Common Development and Distribution License (the "License"). 725cf1a30Sjl# You may not use this file except in compliance with the License. 82eaee53eSmb# 92eaee53eSmb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 102eaee53eSmb# or http://www.opensolaris.org/os/licensing. 112eaee53eSmb# See the License for the specific language governing permissions 122eaee53eSmb# and limitations under the License. 132eaee53eSmb# 142eaee53eSmb# When distributing Covered Code, include this CDDL HEADER in each 152eaee53eSmb# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 162eaee53eSmb# If applicable, add the following below this CDDL HEADER, with the 172eaee53eSmb# fields enclosed by brackets "[]" replaced with your own identifying 182eaee53eSmb# information: Portions Copyright [yyyy] [name of copyright owner] 192eaee53eSmb# 202eaee53eSmb# CDDL HEADER END 212eaee53eSmb# 22*a1e4d62bShshaw 23*a1e4d62bShshaw# 24*a1e4d62bShshaw# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 25*a1e4d62bShshaw# Use is subject to license terms. 26*a1e4d62bShshaw# 272eaee53eSmb# ident "%Z%%M% %I% %E% SMI" 282eaee53eSmb# 292eaee53eSmb# Start script for dcs 302eaee53eSmb# 312eaee53eSmb# For modifying parameters passed to dcs, do not edit 322eaee53eSmb# this script. Instead use svccfg(1m) to modify the SMF 332eaee53eSmb# repository. For example: 342eaee53eSmb# 352eaee53eSmb# svccfg 362eaee53eSmb# svc:> select platform/sun4u/dcs 372eaee53eSmb# svc:/platform/sun4u/dcs> setprop dcs/ah_auth = "md5" 382eaee53eSmb# svc:/platform/sun4u/dcs> exit 392eaee53eSmb 402eaee53eSmb 412eaee53eSmb. /lib/svc/share/smf_include.sh 422eaee53eSmb 432eaee53eSmbgetproparg() { 44*a1e4d62bShshaw val=`svcprop -p $2 $SMF_FMRI` 452eaee53eSmb [ -n "$val" ] && [ "$val" != 'none' ] && echo $1 $val 462eaee53eSmb} 472eaee53eSmb 482eaee53eSmbDCS=/usr/lib/dcs 492eaee53eSmbplatform=`/sbin/uname -i` 5025cf1a30Sjle10k="SUNW,Ultra-Enterprise-10000" 5125cf1a30Sjlsf15k="SUNW,Sun-Fire-15000" 5225cf1a30Sjlopl="SUNW,SPARC-Enterprise" 532eaee53eSmb 542eaee53eSmbargs="" 5525cf1a30Sjlif [ $platform = "$sf15k" ]; then 562eaee53eSmb args="$args `getproparg -a dcs/ah_auth`" 572eaee53eSmb args="$args `getproparg -e dcs/esp_encr`" 582eaee53eSmb args="$args `getproparg -u dcs/esp_auth`" 590b05a701Smcwalterelif [ $platform = "$opl" ]; then 6025cf1a30Sjl args="-l" 612eaee53eSmbfi 622eaee53eSmb 6325cf1a30Sjlif [ $platform = "$e10k" -o $platform = "$sf15k" -o \ 640b05a701Smcwalter $platform = "$opl" ]; then 652eaee53eSmb $DCS $args # Fail if can't execute 662eaee53eSmb exit # Use dcs's exit status 672eaee53eSmbelse 682eaee53eSmb echo "$SMF_FMRI is not supported on this platform." 692eaee53eSmb exit $SMF_EXIT_ERR_CONFIG 702eaee53eSmbfi 712eaee53eSmb 722eaee53eSmbexit 0 73