for f in ${PKG_INSTALL_ROOT}/etc/netbackup/*.default ${PKG_INSTALL_ROOT}/etc/netbackup/.???*.default ; do RN=`echo $f | sed -e 's,.default$,,'` if [ ! -r "$RN" ]; then # bp.conf needs to be configured manually [ $RN = ${PKG_INSTALL_ROOT}/etc/netbackup/bp.conf ] || cp -p $f $RN fi done if [ ! -r ${PKG_INSTALL_ROOT}/etc/netbackup/bp.conf ]; then echo " WARNING: You need to configure the backup service by creating an appropriate /etc/netbackup/bp.conf config file. You may use /etc/netbackup/bp.conf.default as a template for it. " fi if [ -z "$PKG_INSTALL_ROOT" ]; then SERVICES=/etc/services else SERVICES=${PKG_INSTALL_ROOT}/etc/services fi if [ ! -f $SERVICES ]; then cp /dev/null $SERVICES chmod 644 $SERVICES fi PATH="/usr/xpg4/bin:/usr/bin:/usr/local/bin:$PATH" export PATH TMP=`egrep -c -e '^bprd.*/tcp' $SERVICES` if [ $TMP -eq 0 ]; then echo 'bprd 13720/tcp # NetBackup request daemon' >>$SERVICES fi TMP=`egrep -c -e '^bpjava-msvc.*/tcp' $SERVICES` if [ $TMP -eq 0 ]; then echo 'bpjava-msvc 13722/tcp # NetBackup java application server' >>$SERVICES fi TMP=`egrep -c -e '^vnetd.*/tcp' $SERVICES` if [ $TMP -eq 0 ]; then echo 'vnetd 13724/tcp # Veritas network daemon' >>$SERVICES fi TMP=`egrep -c -e '^bpcd.*/tcp' $SERVICES` if [ $TMP -eq 0 ]; then echo 'bpcd 13782/tcp # NetBackup client daemon' >>$SERVICES fi TMP=`egrep -c -e '^vopied.*/tcp' $SERVICES` if [ $TMP -eq 0 ]; then echo 'vopied 13783/tcp # Veritas One-Time password auth daemon' >>$SERVICES fi echo " NOTE: Per default all NetBackup services are disabled. To activate them, you may use the following commands, depending on your needs: svcadm enable netbackup/client svcadm enable netbackup/java-server svcadm enable netbackup/vopied svcadm enable netbackup/vnetd For more information have a look at /etc/netbackup/README or/and the NetBackup documentation. "