xref: /onnv-gate/usr/src/cmd/oplhpd/svc-oplhpd (revision 2589:bab6bd68d0e5)
1*2034Sdnielsen#!/bin/sh
2*2034Sdnielsen#
3*2034Sdnielsen# CDDL HEADER START
4*2034Sdnielsen#
5*2034Sdnielsen# The contents of this file are subject to the terms of the
6*2034Sdnielsen# Common Development and Distribution License (the "License").
7*2034Sdnielsen# You may not use this file except in compliance with the License.
8*2034Sdnielsen#
9*2034Sdnielsen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*2034Sdnielsen# or http://www.opensolaris.org/os/licensing.
11*2034Sdnielsen# See the License for the specific language governing permissions
12*2034Sdnielsen# and limitations under the License.
13*2034Sdnielsen#
14*2034Sdnielsen# When distributing Covered Code, include this CDDL HEADER in each
15*2034Sdnielsen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*2034Sdnielsen# If applicable, add the following below this CDDL HEADER, with the
17*2034Sdnielsen# fields enclosed by brackets "[]" replaced with your own identifying
18*2034Sdnielsen# information: Portions Copyright [yyyy] [name of copyright owner]
19*2034Sdnielsen#
20*2034Sdnielsen# CDDL HEADER END
21*2034Sdnielsen#
22*2034Sdnielsen# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23*2034Sdnielsen# Use is subject to license terms.
24*2034Sdnielsen#
25*2034Sdnielsen#ident	"%Z%%M%	%I%	%E% SMI"
26*2034Sdnielsen
27*2034Sdnielsen. /lib/svc/share/smf_include.sh
28*2034Sdnielsen
29*2034Sdnielsensparc_enterprise="SUNW,SPARC-Enterprise"
30*2034SdnielsenOPLHPD=/usr/platform/${sparc_enterprise}/lib/sparcv9/oplhpd
31*2034Sdnielsenplatform=`/sbin/uname -i`
32*2034Sdnielsen
33*2034Sdnielsenif [ $platform = "$sparc_enterprise" ]; then
34*2034Sdnielsen	$OPLHPD				# Fail if can't execute
35*2034Sdnielsen	exit				# Use oplhpd's exit status
36*2034Sdnielsenelse
37*2034Sdnielsen	echo "$SMF_FMRI is not supported on this platform."
38*2034Sdnielsen	exit $SMF_EXIT_ERR_CONFIG
39*2034Sdnielsenfi
40*2034Sdnielsen
41*2034Sdnielsenexit 0
42