#! /bin/sh

binpath="/usr/local/powersoftplus/bin"

case $1 in
    start)
	if test -f "${binpath}/powersoftplus"; then
	    exec ${binpath}/powersoftplus
	fi
    ;;
    stop)
	if test -f "${binpath}/powersoftplus"; then
	    exec ${binpath}/powersoftplus -t
	fi
    ;;
    params)
	if test -f "${binpath}/powersoftplus"; then
	    exec ${binpath}/powersoftplus -p
	fi
    ;;
    updatecfg)
	if test -f "${binpath}/powersoftplus"; then
	    exec ${binpath}/powersoftplus -u
	fi
    ;;
    *)
	echo "Unknown option! Try $0 [start/stop/params/updatecfg]"
    ;;
esac

exit 0
