#!/bin/sh
#
# $Id: runafutil.sh,v 1.1 2001/01/28 15:53:16 mj Exp $
#
# Run ftnafutil
#
# Usage: runafutil
#

V=-v

LOCK=runafutil

# Lock it
/usr/pkg/lib/fidogate/ftnlock -l $LOCK $$
st=$?
if [ $st -ne 0 ]; then
	exit 2
fi


# Run ftnafutil
/usr/pkg/lib/fidogate/bin/ftnafutil $V subscribe
/usr/pkg/lib/fidogate/bin/ftnafutil $V unsubscribe


# Unlock it
/usr/pkg/lib/fidogate/ftnlock -u $LOCK

exit 0
