#!/bin/bash
# chkconfig: 2345 95 96
# config: NONE
# description: Patch management startup script
# processname: patch_startup

if [ -x /etc/rc.d/init.d/functions ]; then
   . /etc/rc.d/init.d/functions
fi
RETVAL=0

start() 
{
    echo -n "Starting patch management utility"
    /sbin/runuser - nortel -c '/usr/bin/perl /opt/nortel/base/patchutil/bin/startup_patch_mngmnt >/dev/null'
    RETVAL=$?
    [ $RETVAL -eq 0 ] && success || failure
    echo
    return $RETVAL
}
case "$1" in
   start)
      start
      ;;
   *)
      echo $"Usage: $0 {start}"
      RETVAL=1
esac

exit $RETVAL
