#!/bin/sh 
#
#ident  "@(#)prebackout.src 1.4     03/04/10 SMI"
#
# Copyright (c) 2002, by Sun Microsystems, Inc.
# All rights reserved.
#
#
# May have been installed as part of a jumpstart, so check
# the install root

UT_ROOTDIR=${2:-/}
UT_TMP=/var/opt/SUNWut/tmp

UT_BASEDIR=`pkginfo -R ${UT_ROOTDIR} -r SUNWuto`
if [ ! -d ${UT_TMP}/${PatchNum} ] ; then
	mkdir -p ${UT_TMP}/${PatchNum}
fi
/bin/cp $UT_BASEDIR/SUNWut/sbin/utfwadm ${UT_TMP}/${PatchNum}/utfwadm

/usr/bin/echo "This is a temporary directory created during removal of
patch ${PatchNum}. It can be deleted if it still persists
after patchrm." >${UT_TMP}/${PatchNum}/README
