#!/bin/sh
#
# Example script for FIDOGATE inbound processing
#

#. ./.fnet_common
PRG=/usr/lib/fidogate


LOCK=runtic


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


### process tic files ###
# Files sichern
#$PRG/ftntick  -b /var/lib/fidogate/ftest.bbs -e TEST
#$PRG/ftntick  -e ANNOUNCEN --group --bad
$PRG/ftntick  --announce



### Unlock it ###
$PRG/ftnlock -u $LOCK
st=$?
if [ $st -ne 0 ]; then
	exit 1
fi

exit 0
