head	1.5;
access;
symbols
	RELENG_7_4_0_RELEASE:1.4.58.1
	RELENG_7_4:1.4.0.58
	RELENG_7_4_BP:1.4
	RELENG_7_3_0_RELEASE:1.4.56.1
	RELENG_7_3:1.4.0.56
	RELENG_7_3_BP:1.4
	RELENG_7_2_0_RELEASE:1.4.54.1
	RELENG_7_2:1.4.0.54
	RELENG_7_2_BP:1.4
	RELENG_7_1_0_RELEASE:1.4.52.1
	RELENG_6_4_0_RELEASE:1.4.50.1
	RELENG_7_1:1.4.0.52
	RELENG_7_1_BP:1.4
	RELENG_6_4:1.4.0.50
	RELENG_6_4_BP:1.4
	RELENG_7_0_0_RELEASE:1.4
	RELENG_6_3_0_RELEASE:1.4
	RELENG_7_0:1.4.0.48
	RELENG_7_0_BP:1.4
	RELENG_6_3:1.4.0.46
	RELENG_6_3_BP:1.4
	RELENG_7:1.4.0.44
	RELENG_7_BP:1.4
	RELENG_6_2_0_RELEASE:1.4
	RELENG_6_2:1.4.0.42
	RELENG_6_2_BP:1.4
	RELENG_5_5_0_RELEASE:1.4
	RELENG_5_5:1.4.0.40
	RELENG_5_5_BP:1.4
	RELENG_6_1_0_RELEASE:1.4
	RELENG_6_1:1.4.0.38
	RELENG_6_1_BP:1.4
	RELENG_6_0_0_RELEASE:1.4
	RELENG_6_0:1.4.0.36
	RELENG_6_0_BP:1.4
	RELENG_6:1.4.0.34
	RELENG_6_BP:1.4
	RELENG_5_4_0_RELEASE:1.4
	RELENG_5_4:1.4.0.32
	RELENG_5_4_BP:1.4
	RELENG_4_11_0_RELEASE:1.4
	RELENG_4_11:1.4.0.30
	RELENG_4_11_BP:1.4
	RELENG_5_3_0_RELEASE:1.4
	RELENG_5_3:1.4.0.28
	RELENG_5_3_BP:1.4
	RELENG_5:1.4.0.26
	RELENG_5_BP:1.4
	RELENG_4_10_0_RELEASE:1.4
	RELENG_4_10:1.4.0.24
	RELENG_4_10_BP:1.4
	RELENG_5_2_1_RELEASE:1.4
	RELENG_5_2_0_RELEASE:1.4
	RELENG_5_2:1.4.0.22
	RELENG_5_2_BP:1.4
	RELENG_4_9_0_RELEASE:1.4
	RELENG_4_9:1.4.0.20
	RELENG_4_9_BP:1.4
	RELENG_5_1_0_RELEASE:1.4
	RELENG_5_1:1.4.0.18
	RELENG_5_1_BP:1.4
	RELENG_4_8_0_RELEASE:1.4
	RELENG_4_8:1.4.0.16
	RELENG_4_8_BP:1.4
	RELENG_5_0_0_RELEASE:1.4
	RELENG_5_0:1.4.0.14
	RELENG_5_0_BP:1.4
	RELENG_4_7_0_RELEASE:1.4
	RELENG_4_7:1.4.0.12
	RELENG_4_7_BP:1.4
	RELENG_4_6_2_RELEASE:1.4
	RELENG_4_6_1_RELEASE:1.4
	RELENG_4_6_0_RELEASE:1.4
	RELENG_4_6:1.4.0.10
	RELENG_4_6_BP:1.4
	RELENG_4_5_0_RELEASE:1.4
	RELENG_4_5:1.4.0.8
	RELENG_4_5_BP:1.4
	RELENG_4_4_0_RELEASE:1.4
	RELENG_4_4:1.4.0.6
	RELENG_4_4_BP:1.4
	RELENG_4_3_0_RELEASE:1.4
	RELENG_4_3:1.4.0.4
	RELENG_4_3_BP:1.4
	RELENG_4_2_0_RELEASE:1.4
	RELENG_4_1_1_RELEASE:1.4
	PRE_SMPNG:1.4
	RELENG_4_1_0_RELEASE:1.4
	RELENG_3_5_0_RELEASE:1.1.2.2
	RELENG_4_0_0_RELEASE:1.4
	RELENG_4:1.4.0.2
	RELENG_4_BP:1.4
	RELENG_3_4_0_RELEASE:1.1.2.2
	RELENG_3_3_0_RELEASE:1.1.2.1
	RELENG_3_2_PAO:1.1.0.4
	RELENG_3_2_PAO_BP:1.1
	RELENG_3_2_0_RELEASE:1.1
	RELENG_3_1_0_RELEASE:1.1
	RELENG_3:1.1.0.2
	RELENG_3_BP:1.1;
locks; strict;
comment	@# @;


1.5
date	2008.05.26.10.39.45;	author bz;	state dead;
branches;
next	1.4;

1.4
date	99.09.13.15.44.20;	author sheldonh;	state Exp;
branches
	1.4.2.1
	1.4.34.1
	1.4.44.1
	1.4.50.1
	1.4.52.1
	1.4.54.1
	1.4.56.1
	1.4.58.1;
next	1.3;

1.3
date	99.08.27.23.23.58;	author peter;	state Exp;
branches;
next	1.2;

1.2
date	99.05.20.10.07.02;	author hm;	state Exp;
branches;
next	1.1;

1.1
date	99.01.10.14.30.45;	author hm;	state Exp;
branches
	1.1.2.1;
next	;

1.4.2.1
date	2012.11.17.07.22.37;	author svnexp;	state Exp;
branches;
next	;

1.4.34.1
date	2012.11.17.07.39.03;	author svnexp;	state Exp;
branches;
next	;

1.4.44.1
date	2012.11.17.08.01.16;	author svnexp;	state Exp;
branches;
next	;

1.4.50.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.4.52.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.4.54.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.4.56.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.4.58.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.4.58.2;

1.4.58.2
date	2012.11.17.08.16.37;	author svnexp;	state Exp;
branches;
next	;

1.1.2.1
date	99.08.29.14.19.15;	author peter;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	99.11.16.17.39.04;	author joe;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and
parts relied on the now removed NET_NEEDS_GIANT.
Most of I4B has been disconnected from the build
since July 2007 in HEAD/RELENG_7.

This is what was removed:
- configuration in /etc/isdn
- examples
- man pages
- kernel configuration
- sys/i4b (drivers, layers, include files)
- user space tools
- i4b support from ppp
- further documentation

Discussed with: rwatson, re
@
text
@#!/bin/sh
#---------------------------------------------------------------------------
#
#	answer script for i4b isdnd
#	---------------------------
#
# $FreeBSD: src/etc/isdn/answer,v 1.4 1999/09/13 15:44:20 sheldonh Exp $
#
#	last edit-date: [Thu May 20 11:44:38 1999]
#
#---------------------------------------------------------------------------
VARDIR=/var/isdn

#FreeBSD < 3.1, NetBSD, OpenBSD, BSD/OS
#LIBDIR=/usr/local/lib/isdn
#FreeBSD 3.1 and up
LIBDIR=/usr/share/isdn

LOGFILE=/tmp/answer.log
NCALLFILE=${VARDIR}/ncall
DATE=`date +%d%H`
DF=0
dF=0
sF=0

if ! set -- `getopt D:d:s: $*`; then
	echo 'Usage: answer -D device -d destination -s source'
	exit 1
fi

for i ; do
	case ${i} in
	-D)
		DEVICE=$2
		DF=1
		shift
		shift
		;;
	-d)
		DEST=$2
		dF=1
		shift
		shift
		;;
	-s)
		SRC=$2
		sF=1
		shift
		shift
		;;
	--)
		shift
		break
		;;
	esac
done

echo "" >>${LOGFILE}

if [ "${DF}" -eq 0 -o "${dF}" -eq 0 -o "${sF}" -eq 0 ]; then
	echo 'Usage: answer -D device -d destination -s source'
	exit 1
fi

echo "answer: device ${DEVICE} destination ${DEST} source ${SRC} " >>${LOGFILE}

if [ -r "${NCALLFILE}" ]; then
	NCALL=`cat ${NCALLFILE}`
else
	NCALL=0
fi

NCALL=`printf "%.4d" ${NCALL}`

echo Date: `date` >> ${VARDIR}/I.${NCALL}.${DATE}

if [ -n "${SRC}" ]; then
	echo "From: ${SRC}" >> ${VARDIR}/I.${NCALL}.${DATE}
fi

if [ -n "${DEST}" ]; then
	echo "To: ${DEST}" >> ${VARDIR}/I.${NCALL}.${DATE}
fi

if [ -r "${LIBDIR}/beep.al" ]; then
	dd of=${DEVICE} if=${LIBDIR}/beep.al bs=2k # >/dev/null 2>&1
fi

if [ -r "${LIBDIR}/msg.al" ]; then
	dd of=${DEVICE} if=${LIBDIR}/msg.al bs=2k # >/dev/null 2>&1
	if [ -r "${LIBDIR}/beep.al" ]
	then
		dd of=${DEVICE} if=${LIBDIR}/beep.al bs=2k # >/dev/null 2>&1
	fi
fi

echo `expr ${NCALL} + 1` >${NCALLFILE}
@


1.4
log
@Apply a consistent style to most of the etc scripts.  Particularly, use
case instead of test where appropriate, since case allows case is a sh
builtin and (as a side-effect) allows case-insensitivity.

Changes discussed on freebsd-hackers.

Submitted by:	Doug Barton <Doug@@gorean.org>
@
text
@d7 1
a7 1
# $FreeBSD: src/etc/isdn/answer,v 1.3 1999/08/27 23:23:58 peter Exp $
@


1.4.44.1
log
@Switch importer
@
text
@d7 1
a7 1
# $FreeBSD: stable/7/etc/isdn/answer 51231 1999-09-13 15:44:20Z sheldonh $
@


1.4.34.1
log
@Switch importer
@
text
@d7 1
a7 1
# $FreeBSD: stable/6/etc/isdn/answer 51231 1999-09-13 15:44:20Z sheldonh $
@


1.4.2.1
log
@Switch importer
@
text
@d7 1
a7 1
# $FreeBSD: stable/4/etc/isdn/answer 51231 1999-09-13 15:44:20Z sheldonh $
@


1.4.58.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@d7 1
a7 1
# $FreeBSD$
@


1.4.58.2
log
@Switch importer
@
text
@d7 1
a7 1
# $FreeBSD: releng/7.4/etc/isdn/answer 51231 1999-09-13 15:44:20Z sheldonh $
@


1.4.56.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@d7 1
a7 1
# $FreeBSD$
@


1.4.54.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@d7 1
a7 1
# $FreeBSD$
@


1.4.52.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@d7 1
a7 1
# $FreeBSD$
@


1.4.50.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@d7 1
a7 1
# $FreeBSD$
@


1.3
log
@$Id$ -> $FreeBSD$
@
text
@d7 1
a7 1
# $FreeBSD$
d20 1
a20 1
NCALLFILE=$VARDIR/ncall
d26 1
a26 4
set -- `getopt D:d:s: $*`

if test $? != 0
then
d31 24
a54 26
for i
do
	case "$i"
	in
		-D)
			DEVICE=$2
			DF=1
			shift
			shift
			;;
		-d)
			DEST=$2
			dF=1
			shift
			shift
			;;
		-s)
			SRC=$2
			sF=1
			shift
			shift
			;;
		--)
			shift
			break
			;;
d58 1
a58 1
echo "" >>$LOGFILE
d60 1
a60 2
if [ $DF -eq 0 -o $dF -eq 0 -o $sF -eq 0 ]
then
d63 1
a63 1
fi	
d65 1
a65 1
echo "answer: device $DEVICE destination $DEST source $SRC " >>$LOGFILE
d67 3
a69 4
if [ -f $NCALLFILE ]
then
	NCALL=`cat $NCALLFILE`
else 
d73 1
a73 1
NCALL=`printf "%.4d" $NCALL`
d75 1
a75 1
echo Date: `date` >> $VARDIR/I.$NCALL.$DATE
d77 2
a78 3
if [ "$SRC" != "" ]
then
	echo "From: $SRC" >> $VARDIR/I.$NCALL.$DATE
d81 2
a82 3
if [ "$DEST" != "" ]
then
	echo "To: $DEST" >> $VARDIR/I.$NCALL.$DATE
d85 2
a86 3
if [ -f $LIBDIR/beep.al ]
then
	dd of=$DEVICE if=$LIBDIR/beep.al bs=2k # >/dev/null 2>&1
d89 3
a91 4
if [ -f $LIBDIR/msg.al ]
then
	dd of=$DEVICE if=$LIBDIR/msg.al bs=2k # >/dev/null 2>&1
	if [ -f $LIBDIR/beep.al ]
d93 1
a93 1
		dd of=$DEVICE if=$LIBDIR/beep.al bs=2k # >/dev/null 2>&1
d97 1
a97 1
echo `expr $NCALL + 1` >$NCALLFILE
@


1.2
log
@upgrade isdn4bsd from version 0.71 to the just released version 0.81
@
text
@d7 1
a7 1
#	$Id: answer,v 1.5 1999/04/23 09:42:05 hm Exp $
@


1.1
log
@add directory /etc/isdn and populate it
@
text
@d7 1
a7 1
#	$Id: answer,v 1.3 1998/12/18 17:17:57 hm Exp $
d9 1
a9 1
#	last edit-date: [Fri Dec 18 18:05:20 1998]
d13 6
a18 1
LIBDIR=/usr/local/lib/isdn
d94 1
a94 1
if [ -f $LIBDIR/beep.g711a ]
d96 1
a96 1
	dd of=$DEVICE if=$LIBDIR/beep.g711a bs=2k # >/dev/null 2>&1
d99 1
a99 1
if [ -f $LIBDIR/msg.g711a ]
d101 2
a102 2
	dd of=$DEVICE if=$LIBDIR/msg.g711a bs=2k # >/dev/null 2>&1
	if [ -f $LIBDIR/beep.g711a ]
d104 1
a104 1
		dd of=$DEVICE if=$LIBDIR/beep.g711a bs=2k # >/dev/null 2>&1
@


1.1.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d7 1
a7 1
# $FreeBSD$
@


1.1.2.2
log
@MFC: Merge the I4B support files from current.
@
text
@d9 1
a9 1
#	last edit-date: [Thu May 20 11:44:38 1999]
d13 1
a13 6

#FreeBSD < 3.1, NetBSD, OpenBSD, BSD/OS
#LIBDIR=/usr/local/lib/isdn
#FreeBSD 3.1 and up
LIBDIR=/usr/share/isdn

d15 1
a15 1
NCALLFILE=${VARDIR}/ncall
d21 4
a24 1
if ! set -- `getopt D:d:s: $*`; then
d29 26
a54 24
for i ; do
	case ${i} in
	-D)
		DEVICE=$2
		DF=1
		shift
		shift
		;;
	-d)
		DEST=$2
		dF=1
		shift
		shift
		;;
	-s)
		SRC=$2
		sF=1
		shift
		shift
		;;
	--)
		shift
		break
		;;
d58 1
a58 1
echo "" >>${LOGFILE}
d60 2
a61 1
if [ "${DF}" -eq 0 -o "${dF}" -eq 0 -o "${sF}" -eq 0 ]; then
d64 1
a64 1
fi
d66 1
a66 1
echo "answer: device ${DEVICE} destination ${DEST} source ${SRC} " >>${LOGFILE}
d68 4
a71 3
if [ -r "${NCALLFILE}" ]; then
	NCALL=`cat ${NCALLFILE}`
else
d75 1
a75 1
NCALL=`printf "%.4d" ${NCALL}`
d77 1
a77 1
echo Date: `date` >> ${VARDIR}/I.${NCALL}.${DATE}
d79 3
a81 2
if [ -n "${SRC}" ]; then
	echo "From: ${SRC}" >> ${VARDIR}/I.${NCALL}.${DATE}
d84 3
a86 2
if [ -n "${DEST}" ]; then
	echo "To: ${DEST}" >> ${VARDIR}/I.${NCALL}.${DATE}
d89 3
a91 2
if [ -r "${LIBDIR}/beep.al" ]; then
	dd of=${DEVICE} if=${LIBDIR}/beep.al bs=2k # >/dev/null 2>&1
d94 4
a97 3
if [ -r "${LIBDIR}/msg.al" ]; then
	dd of=${DEVICE} if=${LIBDIR}/msg.al bs=2k # >/dev/null 2>&1
	if [ -r "${LIBDIR}/beep.al" ]
d99 1
a99 1
		dd of=${DEVICE} if=${LIBDIR}/beep.al bs=2k # >/dev/null 2>&1
d103 1
a103 1
echo `expr ${NCALL} + 1` >${NCALLFILE}
@


