#!/bin/bash
#
# Execute the utilities and scripts used to populate PDR database
# for component initial values

RETVAL=0
RC=0
LOGFILE=/var/log/nn_startup
param="--edc-detect=strict0"

. /etc/rc.d/init.d/functions
. /etc/rc.d/init.d/init_functions
. /etc/profile.d/SetNNEnvVar.sh

# See how we were called.

prog="invmgr"

echo $"Checking dependencies for $prog."
testforpid $prog
if [ $? -eq 0 ]; then
    echo `date` invmgr: populating the Pdrd database for inventory information >> $LOGFILE
    /nn/sbin/invmgr $param
else
    echo `date` invmgr: not run, timed out waiting for Pdrd dependency >> $LOGFILE
fi

exit $?
