xref: /illumos-gate/usr/src/cmd/dcs/sparc/sun4u/svc-dcs (revision 1f4c6dbc37f14382f7ff4575a74da056dbd34d66)
12eaee53eSmb158278#!/sbin/sh
22eaee53eSmb158278#
32eaee53eSmb158278# CDDL HEADER START
42eaee53eSmb158278#
52eaee53eSmb158278# 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.
82eaee53eSmb158278#
92eaee53eSmb158278# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
102eaee53eSmb158278# or http://www.opensolaris.org/os/licensing.
112eaee53eSmb158278# See the License for the specific language governing permissions
122eaee53eSmb158278# and limitations under the License.
132eaee53eSmb158278#
142eaee53eSmb158278# When distributing Covered Code, include this CDDL HEADER in each
152eaee53eSmb158278# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
162eaee53eSmb158278# If applicable, add the following below this CDDL HEADER, with the
172eaee53eSmb158278# fields enclosed by brackets "[]" replaced with your own identifying
182eaee53eSmb158278# information: Portions Copyright [yyyy] [name of copyright owner]
192eaee53eSmb158278#
202eaee53eSmb158278# CDDL HEADER END
212eaee53eSmb158278#
22a1e4d62bShshaw
23a1e4d62bShshaw#
24a1e4d62bShshaw# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
25a1e4d62bShshaw# Use is subject to license terms.
262a1fd0ffSPeter Tribble# Copyright 2019 Peter Tribble.
272eaee53eSmb158278#
282eaee53eSmb158278# Start script for dcs
292eaee53eSmb158278#
302eaee53eSmb158278
312eaee53eSmb158278. /lib/svc/share/smf_include.sh
322eaee53eSmb158278
332eaee53eSmb158278DCS=/usr/lib/dcs
342eaee53eSmb158278platform=`/sbin/uname -i`
3525cf1a30Sjl139090opl="SUNW,SPARC-Enterprise"
362eaee53eSmb158278
37*1f4c6dbcSPeter Tribbleif [ $platform = "$opl" ]; then
38*1f4c6dbcSPeter Tribble	$DCS -l			# Fail if can't execute
392eaee53eSmb158278	exit			# Use dcs's exit status
402eaee53eSmb158278else
412eaee53eSmb158278	echo "$SMF_FMRI is not supported on this platform."
422eaee53eSmb158278	exit $SMF_EXIT_ERR_CONFIG
432eaee53eSmb158278fi
442eaee53eSmb158278
452eaee53eSmb158278exit 0
46