#! /bin/sh
#
# For REDHAT Linux
#
# Author: Andre Hedrick <hedrick@astro.dyer.vanderbilt.edu>
#
# /etc/rc.d/init.d/apcups
#
# Source function libarary
. /etc/rc.d/init.d/functions


case "$1" in
    start)
	if [ -x /sbin/powersc ]; then
		/sbin/powersc INIT
		touch /var/lock/subsys/apcups
	fi
    ;;
    stop)
	/sbin/powersc STOP
	rm -f /var/lock/subsys/apcups
    ;;
    *)
    echo "Usage: $0 {start|stop}"
    exit 1
esac

exit 0
