preinstall revision 18c2aff776a775d34a4c9893a4c72e0434d68e36
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# CDDL HEADER START
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# The contents of this file are subject to the terms of the
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# Common Development and Distribution License (the "License").
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# You may not use this file except in compliance with the License.
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# or http://www.opensolaris.org/os/licensing.
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# See the License for the specific language governing permissions
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# and limitations under the License.
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# When distributing Covered Code, include this CDDL HEADER in each
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# If applicable, add the following below this CDDL HEADER, with the
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# fields enclosed by brackets "[]" replaced with your own identifying
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# information: Portions Copyright [yyyy] [name of copyright owner]
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# CDDL HEADER END
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
726fad2a65f16c200a03969c29cb5c86c2d427dbDina K Nimeh#
726fad2a65f16c200a03969c29cb5c86c2d427dbDina K Nimeh# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
726fad2a65f16c200a03969c29cb5c86c2d427dbDina K Nimeh# Use is subject to license terms.
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
726fad2a65f16c200a03969c29cb5c86c2d427dbDina K Nimeh# ident "%Z%%M% %I% %E% SMI"
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino#
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# Presence of this temp file will tell postinstall script
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# that the HAL service is already installed, in which case
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# the current service state will be preserved, be it enabled
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino# or disabled.
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpinorm -f $PKG_INSTALL_ROOT/var/tmp/hal_installed.tmp > /dev/null 2>&1
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Andersonif [ -f $PKG_INSTALL_ROOT/var/svc/manifest/system/hal.xml ]; then
54034eb2d6e7d811adf4a1fe5105eac6fea6b0b5Dan OpenSolaris Anderson touch $PKG_INSTALL_ROOT/var/tmp/hal_installed.tmp
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpinofi
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpinoexit 0
71269a2275bf5a143dad6461eee2710a344e7261Anthony Scarpino