xref: /titanic_50/usr/src/cmd/sckmd/svc-sckmd (revision 0b05a701b49058a6d47b581827961c6c39b1071a)
125cf1a30Sjl139090#!/bin/sh
225cf1a30Sjl139090#
325cf1a30Sjl139090# CDDL HEADER START
425cf1a30Sjl139090#
525cf1a30Sjl139090# The contents of this file are subject to the terms of the
625cf1a30Sjl139090# Common Development and Distribution License (the "License").
725cf1a30Sjl139090# You may not use this file except in compliance with the License.
825cf1a30Sjl139090#
925cf1a30Sjl139090# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1025cf1a30Sjl139090# or http://www.opensolaris.org/os/licensing.
1125cf1a30Sjl139090# See the License for the specific language governing permissions
1225cf1a30Sjl139090# and limitations under the License.
1325cf1a30Sjl139090#
1425cf1a30Sjl139090# When distributing Covered Code, include this CDDL HEADER in each
1525cf1a30Sjl139090# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1625cf1a30Sjl139090# If applicable, add the following below this CDDL HEADER, with the
1725cf1a30Sjl139090# fields enclosed by brackets "[]" replaced with your own identifying
1825cf1a30Sjl139090# information: Portions Copyright [yyyy] [name of copyright owner]
1925cf1a30Sjl139090#
2025cf1a30Sjl139090# CDDL HEADER END
2125cf1a30Sjl139090#
2225cf1a30Sjl139090#
2325cf1a30Sjl139090# Copyright 2006 Sun Microsystems, Inc.	 All rights reserved.
2425cf1a30Sjl139090# Use is subject to license terms.
2525cf1a30Sjl139090#
2625cf1a30Sjl139090# ident	"%Z%%M%	%I%	%E% SMI"
2725cf1a30Sjl139090#
2825cf1a30Sjl139090
2925cf1a30Sjl139090#
3025cf1a30Sjl139090# Startup script for the Key Management Daemon
3125cf1a30Sjl139090#
3225cf1a30Sjl139090
3325cf1a30Sjl139090. /lib/svc/share/smf_include.sh
3425cf1a30Sjl139090
3525cf1a30Sjl139090platform=${_INIT_UTS_PLATFORM:-`/sbin/uname -i`}
3625cf1a30Sjl139090starcat="SUNW,Sun-Fire-15000"
3725cf1a30Sjl139090opl="SUNW,SPARC-Enterprise"
3825cf1a30Sjl139090sckmd="/usr/platform/sun4u/lib/sckmd"
3925cf1a30Sjl139090
4025cf1a30Sjl139090if [ ${platform} = "${starcat}" -o  \
41*0b05a701Smcwalter     ${platform} = "${opl}" ]; then
4225cf1a30Sjl139090	if [ -x ${sckmd} ]; then
4325cf1a30Sjl139090		${sckmd}
4425cf1a30Sjl139090		exit $SMF_EXIT_OK
4525cf1a30Sjl139090	fi
4625cf1a30Sjl139090fi
4725cf1a30Sjl139090exit $SMF_EXIT_MON_OFFLINE
48