#! /bin/sh
### BEGIN INIT INFO
# Provides:        hpnid
# Required-Start:  
# Required-Stop:
# Default-Start:   3 4 5
# Default-Stop:
# Description:     HP Netserver Identification collector.
### END INIT INFO

# Source function library.
. /etc/rc.status
. /etc/rc.config                                                                
                                                                                
test -x /usr/hpserver/bin/nidreg || exit 5
                                                                                
# Determine the base and follow a runlevel link name.                           
base=${0##*/}                                                                   
link=${base#*[SK][0-9][0-9]}                                                    
                                                                                
# Force execution if not called by a runlevel directory.                        
test $link = $base && START_NIDREG="yes"                                           
test "$START_NIDREG" = yes || exit 0

#
#	See how we were called.
#
rc_reset
case "$1" in
  start)
	echo -n 'Starting HP Netserver Identification collector: '
	/usr/hpserver/bin/nidreg -w
	rc_status -v
	;;
  stop)
	;;
  *)
	echo "Usage: /etc/init.d/hpnidclt {start|stop}"
	exit 1
esac

rc_exit
