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