#!/bin/sh

. "`dirname $0`/rcdefs"

case "$1" in
  start)
	Print -n "Starting Smart UPS monitoring... "
	${NET}/smupsd ${UPS_OPTIONS} &
	Print "done."
	;;
  stop)
	Print -n "Stopping Smart UPS monitoring... "
	# Redirected to /dev/null to avoid incorrect error messages.
	Terminate smupsd 2> /dev/null
	Print "done."
	;;
  *)
	Usage "$0"
	exit 1
esac

exit 0
