xref: /titanic_50/usr/src/cmd/sckmd/svc-sckmd (revision 25cf1a301a396c38e8adf52c15f537b80d2483f7)
1*25cf1a30Sjl139090#!/bin/sh
2*25cf1a30Sjl139090#
3*25cf1a30Sjl139090# CDDL HEADER START
4*25cf1a30Sjl139090#
5*25cf1a30Sjl139090# The contents of this file are subject to the terms of the
6*25cf1a30Sjl139090# Common Development and Distribution License (the "License").
7*25cf1a30Sjl139090# You may not use this file except in compliance with the License.
8*25cf1a30Sjl139090#
9*25cf1a30Sjl139090# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*25cf1a30Sjl139090# or http://www.opensolaris.org/os/licensing.
11*25cf1a30Sjl139090# See the License for the specific language governing permissions
12*25cf1a30Sjl139090# and limitations under the License.
13*25cf1a30Sjl139090#
14*25cf1a30Sjl139090# When distributing Covered Code, include this CDDL HEADER in each
15*25cf1a30Sjl139090# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*25cf1a30Sjl139090# If applicable, add the following below this CDDL HEADER, with the
17*25cf1a30Sjl139090# fields enclosed by brackets "[]" replaced with your own identifying
18*25cf1a30Sjl139090# information: Portions Copyright [yyyy] [name of copyright owner]
19*25cf1a30Sjl139090#
20*25cf1a30Sjl139090# CDDL HEADER END
21*25cf1a30Sjl139090#
22*25cf1a30Sjl139090#
23*25cf1a30Sjl139090# Copyright 2006 Sun Microsystems, Inc.	 All rights reserved.
24*25cf1a30Sjl139090# Use is subject to license terms.
25*25cf1a30Sjl139090#
26*25cf1a30Sjl139090# ident	"%Z%%M%	%I%	%E% SMI"
27*25cf1a30Sjl139090#
28*25cf1a30Sjl139090
29*25cf1a30Sjl139090#
30*25cf1a30Sjl139090# Startup script for the Key Management Daemon
31*25cf1a30Sjl139090#
32*25cf1a30Sjl139090
33*25cf1a30Sjl139090. /lib/svc/share/smf_include.sh
34*25cf1a30Sjl139090
35*25cf1a30Sjl139090platform=${_INIT_UTS_PLATFORM:-`/sbin/uname -i`}
36*25cf1a30Sjl139090starcat="SUNW,Sun-Fire-15000"
37*25cf1a30Sjl139090opl="SUNW,SPARC-Enterprise"
38*25cf1a30Sjl139090fjopl="FJSV,SPARC-Enterprise"
39*25cf1a30Sjl139090tmpopl="SUNW,OPL-Enterprise"
40*25cf1a30Sjl139090sckmd="/usr/platform/sun4u/lib/sckmd"
41*25cf1a30Sjl139090
42*25cf1a30Sjl139090if [ ${platform} = "${starcat}" -o  \
43*25cf1a30Sjl139090     ${platform} = "${opl}" -o \
44*25cf1a30Sjl139090     ${platform} = "${fjopl}" -o \
45*25cf1a30Sjl139090     ${platform} = "${tmpopl}" ]; then
46*25cf1a30Sjl139090	if [ -x ${sckmd} ]; then
47*25cf1a30Sjl139090		${sckmd}
48*25cf1a30Sjl139090		exit $SMF_EXIT_OK
49*25cf1a30Sjl139090	fi
50*25cf1a30Sjl139090fi
51*25cf1a30Sjl139090exit $SMF_EXIT_MON_OFFLINE
52