#!/bin/sh
# Copyright (C) 2000-2001 Open Source Telecom Corporation.
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
#
if test ! -z "$*" ; then
	echo "use: baydown"
	exit -1
fi

if test -w /var/run/bayonne/bayonne.ctrl ; then
	echo down >/var/run/bayonne/bayonne.ctrl
	exit 0
elif test -w /var/run/bayonne.ctrl ; then
	echo down >/var/run/bayonne.ctrl
	exit 0
elif test -w ~/.bayonne.ctrl ; then
	echo down >~/.bayonne.ctrl
	exit 0
else
	echo "bayonne down: unable to find fifo"
	exit -1
fi
