#!/bin/sh # # # This script installs Bootmail /etc/init.d. This package allows for # the system to send an email to the Unix admin pager upon shutdown or reboot. # Harry Hoffman logMessage "Installing Bootmail.\n" Bootmail_NAME="bootmail-1.00" Bootmail_PKG_SRC="${Bootmail_NAME}.pkg" Bootmail_PKG_DIR="${JASS_ROOT_DIR}/${JASS_PACKAGE_DIR}" PKGRM_FILE_JASS="/opt/SUNWjass/Packages/noask_pkgrm" # Install Bootmail package onto the client logMessage "Installing ${Bootmail_NAME} from ${Bootmail_PKG_DIR}/${Bootmail_PKG_SRC}.\n" if [ -f ${Bootmail_PKG_DIR}/${Bootmail_PKG_SRC} ]; then add_pkg -d ${Bootmail_PKG_DIR}/${Bootmail_PKG_SRC} Bootmail add_to_manifest X "pkgrm -n -a ${PKGRM_FILE_JASS} Bootmail" else logNotice "Could not find Bootmail" fi