#! /bin/sh # # $Id: nw_node_request.SunOS,v 1.4 2005/12/13 22:44:48 chejle Exp $ Copyright (c) 2003-2005 EMC Corporation. # # # Copyright (c) 2003-2005 EMC Corporation. # # All rights reserved. This is an UNPUBLISHED work, and # comprises proprietary and confidential information of EMC. # Unauthorized use, disclosure, and distribution are strictly # prohibited. Use, duplication, or disclosure of the software # and documentation by the U.S. Government is subject to # restrictions set forth in a license agreement between the # Government and EMC or other written agreement specifying # the Government's rights to use the software and any applicable # FAR provisions, such as FAR 52.227-19. # PATH=/usr/sbin:/usr/bin:/sbin PRODUCT_NAME="Sun StorageTek EBS" # default request script values RESTART_DAEMONS=no #=============================================================================== # Function: ask_restartdaemons # Summary: prompt whether to restart daemons and set RESTART_DAEMONS #=============================================================================== ask_restartdaemons() { RESULT=`ckyorn -Q -p "Restart ${PRODUCT_NAME} daemons at end of install? (default=${RESTART_DAEMONS})" -d ${RESTART_DAEMONS}` if [ `expr ${RESULT} : [yY]` -ne 0 ]; then RESTART_DAEMONS=yes else RESTART_DAEMONS=no fi } #=============================================================================== # Function: main #=============================================================================== if [ "X${PKG_INSTALL_ROOT}" = "X/a" ]; then echo "JumpStart installation detected, using defaults" else ask_restartdaemons fi cat >$1 <