summaryrefslogtreecommitdiffstats
path: root/etc/isdn/tell-record
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-05-26 10:40:09 +0000
committerbz <bz@FreeBSD.org>2008-05-26 10:40:09 +0000
commit6bba9b42448c966b4d7425ab0ca6f86f26564fb5 (patch)
treece6d26c22aa5ab44c23fab794efd22c6b5bc9c39 /etc/isdn/tell-record
parentcf7fbdd9301f7a93d32de3e79370507fa46278c6 (diff)
downloadFreeBSD-src-6bba9b42448c966b4d7425ab0ca6f86f26564fb5.zip
FreeBSD-src-6bba9b42448c966b4d7425ab0ca6f86f26564fb5.tar.gz
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
Diffstat (limited to 'etc/isdn/tell-record')
-rwxr-xr-xetc/isdn/tell-record89
1 files changed, 0 insertions, 89 deletions
diff --git a/etc/isdn/tell-record b/etc/isdn/tell-record
deleted file mode 100755
index ae4c8176..0000000
--- a/etc/isdn/tell-record
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/sh
-#---------------------------------------------------------------------------
-#
-# tell called and calling numbers answer script for i4b isdnd
-# -----------------------------------------------------------
-#
-# $FreeBSD$
-#
-# last edit-date: [Tue Oct 31 10:59:49 2000]
-#
-#---------------------------------------------------------------------------
-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 "${LIBDIR}/beep.al" ]; then
- dd of=${DEVICE} if=${LIBDIR}/beep.al bs=2k >/dev/null 2>&1
-fi
-
-# tell the caller the number he is calling from
-
-POS=1
-LENGTH=`expr ${SRC} : '.*'`
-
-while : ; do
- DIGIT=`echo ${SRC} | cut -c ${POS}`
- /bin/dd of=${DEVICE} if=${LIBDIR}/${DIGIT}.al bs=2k >/dev/null 2>&1
- POS=`expr ${POS} + 1`
- if [ "${POS}" -gt "${LENGTH}" ]; then
- break
- fi
-done
-
-if [ -r "${LIBDIR}/beep.al" ]; then
- dd of=${DEVICE} if=${LIBDIR}/beep.al bs=2k >/dev/null 2>&1
-fi
-
-dd if=${DEVICE} of=${VARDIR}/recorded.msg bs=2k >/dev/null 2>&1
OpenPOWER on IntegriCloud