#!/bin/sh

DATADIR=$DESTDIR/var/ax25/fbb
LIBDIR=$DESTDIR/usr/lib/fbb
FBBCONF=$DESTDIR/etc/ax25/fbb.conf

echo "Copying MULTI server from KE4UWL"
cp multi $LIBDIR/server/multi
cp multi.hlp $LIBDIR/server/multi.hlp
chmod +x $LIBDIR/server/multi

echo "Checking fbb.conf :"
if ! grep MULTI $FBBCONF ; then
	echo "Adding MULTI to fbb.conf"
	echo "server = MULTI multi Multi-postage" >> $FBBCONF
fi
