a31148363f598def767ac48c5d82e1572e44b935Gerry Liu#!/bin/sh
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu#
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# CDDL HEADER START
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu#
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# The contents of this file are subject to the terms of the
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# Common Development and Distribution License (the "License").
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# You may not use this file except in compliance with the License.
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu#
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# or http://www.opensolaris.org/os/licensing.
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# See the License for the specific language governing permissions
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# and limitations under the License.
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu#
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# When distributing Covered Code, include this CDDL HEADER in each
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# If applicable, add the following below this CDDL HEADER, with the
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# fields enclosed by brackets "[]" replaced with your own identifying
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# information: Portions Copyright [yyyy] [name of copyright owner]
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu#
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# CDDL HEADER END
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu#
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu#
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# Copyright (c) 2010, Intel Corporation.
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu# All rights reserved.
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu#
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu. /lib/svc/share/smf_include.sh
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu
a31148363f598def767ac48c5d82e1572e44b935Gerry LiuPLATFORM="i86pc"
a31148363f598def767ac48c5d82e1572e44b935Gerry LiuACPIHPD=/usr/platform/${PLATFORM}/lib/acpihpd
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu/usr/sbin/prtconf -D /devices/fw/acpidr@0 > /dev/null 2>&1
a31148363f598def767ac48c5d82e1572e44b935Gerry Liuif [ $? -ne 0 ]; then
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu svcadm disable -t $SMF_FMRI
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu sleep 5&
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu exit $SMF_EXIT_OK
a31148363f598def767ac48c5d82e1572e44b935Gerry Liufi
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu
a31148363f598def767ac48c5d82e1572e44b935Gerry Liu$ACPIHPD && exit $SMF_EXIT_OK || exit $SMF_EXIT_ERR_FATAL