#!/bin/sh
#
# ident "@(#)postbackout.src	1.5    10/08/02 Oracle"
#
# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
#

# We may be backing out on an alternate root partition, so check
# the install root

UT_ROOTDIR=${2:-/}

SUNWUT="${UT_ROOTDIR}/opt/SUNWut"
SUNWUTETC="${UT_ROOTDIR}/etc/opt/SUNWut"
UTCTL_RUN="${UT_ROOTDIR}/etc/opt/SUNWut/utctl.run"
CP=/bin/cp

if [ -f "$UTCTL_RUN" ]; then
        ${CP} ${SUNWUT}/etc/template/utsservices.cfg ${SUNWUTETC}/utsservices.cfg
fi

exit 0
