freebsd-dev/gnu/usr.sbin/isdn/answ/answ.sh
1995-02-15 00:46:26 +00:00

15 lines
308 B
Bash

# play.sh
if [ -f /isdn/msg/.num ]
then
N=`cat /isdn/msg/.num`
else
N=0
fi
N=`printf "%.4d" $N`
D=`date +%d%H`
date >> /isdn/msg/I.$N.$D
dd of=/dev/itel00 if=/isdn/msg/msg.answ bs=1k
dd of=/dev/itel00 if=/isdn/msg/beep bs=1k
dd if=/dev/itel00 of=/isdn/msg/R.$N.$D bs=1k
echo `expr $N + 1` >/isdn/msg/.num