1*2309Srsmaeda#!/bin/sh 2*2309Srsmaeda# 3*2309Srsmaeda# CDDL HEADER START 4*2309Srsmaeda# 5*2309Srsmaeda# The contents of this file are subject to the terms of the 6*2309Srsmaeda# Common Development and Distribution License (the "License"). 7*2309Srsmaeda# You may not use this file except in compliance with the License. 8*2309Srsmaeda# 9*2309Srsmaeda# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*2309Srsmaeda# or http://www.opensolaris.org/os/licensing. 11*2309Srsmaeda# See the License for the specific language governing permissions 12*2309Srsmaeda# and limitations under the License. 13*2309Srsmaeda# 14*2309Srsmaeda# When distributing Covered Code, include this CDDL HEADER in each 15*2309Srsmaeda# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*2309Srsmaeda# If applicable, add the following below this CDDL HEADER, with the 17*2309Srsmaeda# fields enclosed by brackets "[]" replaced with your own identifying 18*2309Srsmaeda# information: Portions Copyright [yyyy] [name of copyright owner] 19*2309Srsmaeda# 20*2309Srsmaeda# CDDL HEADER END 21*2309Srsmaeda# 22*2309Srsmaeda 23*2309Srsmaeda# 24*2309Srsmaeda# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 25*2309Srsmaeda# Use is subject to license terms. 26*2309Srsmaeda# 27*2309Srsmaeda# ident "%Z%%M% %I% %E% SMI" 28*2309Srsmaeda# 29*2309Srsmaeda 30*2309Srsmaeda. /lib/svc/share/smf_include.sh 31*2309Srsmaeda 32*2309SrsmaedaDRD=/usr/lib/ldoms/drd 33*2309Srsmaedamach=`/sbin/uname -m` 34*2309Srsmaeda 35*2309SrsmaedaEXIT=$SMF_EXIT_ERR_CONFIG 36*2309Srsmaeda 37*2309Srsmaedaif [ $mach = "sun4v" ]; then 38*2309Srsmaeda $DRD && EXIT=$SMF_EXIT_OK 39*2309Srsmaedaelse 40*2309Srsmaeda echo "$SMF_FMRI is not supported on this platform." 41*2309Srsmaedafi 42*2309Srsmaeda 43*2309Srsmaedaexit $EXIT 44