svc-sckmd revision 25cf1a301a396c38e8adf52c15f537b80d2483f7
5cd4555ad444fd391002ae32450572054369fd42Rob Austein#!/bin/sh
5cd4555ad444fd391002ae32450572054369fd42Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# CDDL HEADER START
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews# The contents of this file are subject to the terms of the
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Common Development and Distribution License (the "License").
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# You may not use this file except in compliance with the License.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# or http://www.opensolaris.org/os/licensing.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews# CDDL HEADER END
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews#
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews#
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley# Use is subject to license terms.
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley#
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley# ident "%Z%%M% %I% %E% SMI"
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley#
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley#
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley# Startup script for the Key Management Daemon
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley#
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley. /lib/svc/share/smf_include.sh
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleyplatform=${_INIT_UTS_PLATFORM:-`/sbin/uname -i`}
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleystarcat="SUNW,Sun-Fire-15000"
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleyopl="SUNW,SPARC-Enterprise"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinfjopl="FJSV,SPARC-Enterprise"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeintmpopl="SUNW,OPL-Enterprise"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinsckmd="/usr/platform/sun4u/lib/sckmd"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrewsif [ ${platform} = "${starcat}" -o \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ${platform} = "${opl}" -o \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ${platform} = "${fjopl}" -o \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ${platform} = "${tmpopl}" ]; then
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein if [ -x ${sckmd} ]; then
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ${sckmd}
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews exit $SMF_EXIT_OK
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein fi
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinfi
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinexit $SMF_EXIT_MON_OFFLINE
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley