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