# This class action script is introduced to handle patchrm # operation of a patch installed in safemode. # This CAS is invoked as part of patchrm operation. pkgadd # installs the backout package and invokes u.none after the # backout package is installed. This script creates lofs mounts # for removing safemode patch. # # For special package objects such as edittable files, the patch # producer must supply appropriate class action scripts. # # directory format options. # # @(#)u.script 1.1 07/07/02 SMI # # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # Definitions for override safety mechanism PATCH_OVERRIDE_LIB="${PKG_INSTALL_ROOT}/usr/lib/patch/patch_override_lib" # script in a fucntion so that it can be overridden if needed - particular u_script_merge() { : } # script in a fucntion so that it can be overridden if needed - particular u_script_wrapup() { : } # script in a fucntion so that it can be overridden if needed - generic u_script_deflt() { while read src dst; do echo "${src}" "${dst}" | u_script_merge "$@" done } # load the override lib if it exists if [ -f "${PATCH_OVERRIDE_LIB}" -a -r "${PATCH_OVERRIDE_LIB}" ] ; then . "${PATCH_OVERRIDE_LIB}" fi # execute the script functions u_script_deflt "$@" u_script_wrapup "$@" exit 0