1*12004Sjiang.liu@intel.com#!/bin/sh 2*12004Sjiang.liu@intel.com# 3*12004Sjiang.liu@intel.com# CDDL HEADER START 4*12004Sjiang.liu@intel.com# 5*12004Sjiang.liu@intel.com# The contents of this file are subject to the terms of the 6*12004Sjiang.liu@intel.com# Common Development and Distribution License (the "License"). 7*12004Sjiang.liu@intel.com# You may not use this file except in compliance with the License. 8*12004Sjiang.liu@intel.com# 9*12004Sjiang.liu@intel.com# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*12004Sjiang.liu@intel.com# or http://www.opensolaris.org/os/licensing. 11*12004Sjiang.liu@intel.com# See the License for the specific language governing permissions 12*12004Sjiang.liu@intel.com# and limitations under the License. 13*12004Sjiang.liu@intel.com# 14*12004Sjiang.liu@intel.com# When distributing Covered Code, include this CDDL HEADER in each 15*12004Sjiang.liu@intel.com# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*12004Sjiang.liu@intel.com# If applicable, add the following below this CDDL HEADER, with the 17*12004Sjiang.liu@intel.com# fields enclosed by brackets "[]" replaced with your own identifying 18*12004Sjiang.liu@intel.com# information: Portions Copyright [yyyy] [name of copyright owner] 19*12004Sjiang.liu@intel.com# 20*12004Sjiang.liu@intel.com# CDDL HEADER END 21*12004Sjiang.liu@intel.com# 22*12004Sjiang.liu@intel.com# 23*12004Sjiang.liu@intel.com# Copyright (c) 2010, Intel Corporation. 24*12004Sjiang.liu@intel.com# All rights reserved. 25*12004Sjiang.liu@intel.com# 26*12004Sjiang.liu@intel.com 27*12004Sjiang.liu@intel.com. /lib/svc/share/smf_include.sh 28*12004Sjiang.liu@intel.com 29*12004Sjiang.liu@intel.comPLATFORM="i86pc" 30*12004Sjiang.liu@intel.comACPIHPD=/usr/platform/${PLATFORM}/lib/acpihpd 31*12004Sjiang.liu@intel.com 32*12004Sjiang.liu@intel.com/usr/sbin/prtconf -D /devices/fw/acpidr@0 > /dev/null 2>&1 33*12004Sjiang.liu@intel.comif [ $? -ne 0 ]; then 34*12004Sjiang.liu@intel.com svcadm disable -t $SMF_FMRI 35*12004Sjiang.liu@intel.com sleep 5& 36*12004Sjiang.liu@intel.com exit $SMF_EXIT_OK 37*12004Sjiang.liu@intel.comfi 38*12004Sjiang.liu@intel.com 39*12004Sjiang.liu@intel.com$ACPIHPD && exit $SMF_EXIT_OK || exit $SMF_EXIT_ERR_FATAL 40