#!/bin/sh # add_client -- simple wrapper for the Jumpstart add_install_client script # Usage: add_client # # Copyright (c) Deer Run Associates. All rights reserved. # Permission to distribute freely as long as this Copyright is preserved. # Author: Hal Pomeranz # *** NOTE: Make sure these parameters are appropriate for your configuration! # CONF_SERVER is the hostname of your configuration server # CONF_DIR is the path to your configuration directory # INST_SERVER is the hostname of your installation server # INST_ROOT is the directory containing your install directories # (install directories should be named "jump_`uname -r`") # # Script assumes that sysidcfg file is located at the top of each install # directory. # CONF_SERVER=jumpsrvr CONF_DIR=/export/jumpstart INST_SERVER=$CONF_SERVER INST_ROOT=/export HOST=$1 KARCH=$2 VERS=$3 if [ "$VERS" = "5.5.1" ]; then cd $INST_ROOT/jump_$VERS ./add_install_client -c ${CONF_SERVER}:${CONF_DIR} \ -s ${INST_SERVER}:${INST_ROOT}/jump_${VERS} \ ${HOST} ${KARCH} else cd $INST_ROOT/jump_$VERS/Solaris_*/Tools ./add_install_client -c ${CONF_SERVER}:${CONF_DIR} \ -p ${INST_SERVER}:${INST_ROOT}/jump_${VERS} \ -s ${INST_SERVER}:${INST_ROOT}/jump_${VERS} \ ${HOST} ${KARCH} fi