#!/bin/sh
# @(#)S98upsd	1.8
#         Copyright 1994, American Power Conversion, Inc.
#
# NAME: S98upsd
#
# PATH: /usr3/SCCS/BREAKOFF/UNIX/PCPLUS4.2/s.S98upsd
#
# REV: 1.8
#
# LAST MODIFIED: 10/17/95 15:46:01
#
# DESCRIPTION: 
#
# REFERENCES:
#
# NOTES:
#
# REVISIONS:
#  ajr11Feb94 Fixed to cd to install_path in order to work with upsd.sh 
#             wrapper that has been added
#  ajr24Mar94 Allow INSTALL to have startup flags.
#  ajr18Apr94 Script is now named upsd, not upsd.sh
#  djs15May95 Changed copyright date
#  djs30Aug95 Suppressed error messages
#  mds29Sep98 Changed copyright and version information
#  mds11Dec98 Changed to Beta
#  msamson27Jan99 Removed Beta label
#  msamson01Apr99 For Linux, we have to remove upsoff.cmd, because we cannot 
#                 remove this file once all filesystems have been unmounted
#                 in our shutdown script. 
#  msamson28Apr99 Updated to version 4.5
#  twenisch11Aug99 Reversioned as 4.5.1
#

INSTALL_PATH="/usr/lib/powerchute"

if [ -r /upsoff.cmd ]
then
    rm -f /upsoff.cmd
fi

case "$1" in
start)
	cd $INSTALL_PATH
	./upsd   2>/dev/null
	echo
	echo "PowerChute Plus for Unix, v4.5.1 (glibc): Copyright (c) 1999, American Power Conversion "
	echo
	;;
stop)
	;;
*)
	echo "Usage S98upsd [start|stop]"
	;;
esac




















