#!/bin/sh
# $Header: /boot/home/code/cvsroot/scripts/DataOnly,v 1.2 1998/05/17 02:21:25 jrand Exp $
#
#  DataOnly
#
#  By: Jeremy Rand
#    Copyright 1997
#
# This script answers the phone and puts the modem into data mode.  When
# it gets a connect, it starts the login program so the caller can
# login to the system.
#

cleanup () {
  ./tellModem -d onhook "$MODEM" stop > /dev/null
  exit
  }

cd "$1"
MODEM="$2"
MESSAGE="$3"

./tellModem -d offhook "$MODEM" data login

cleanup
