#! /bin/sh
### BEGIN INIT INFO
# Provides:
# Required-Start:  mmcdev
# Required-Stop:
# Default-Start:   3 4 5
# Default-Stop:
# Description:     HP Software Version collector.
### END INIT INFO

# Source function library.
. /etc/rc.status
. /etc/rc.config

test -x /usr/hpserver/bin/hpswvclt || 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_HPSWVCLT="yes"
test "$START_HPSWVCLT" = yes || exit 0

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

rc_exit
