#! /bin/bash
#
# Nov/02/96
#
PACKET_SIZE=1024
DEBUG=""
MODEM_SPEED=38400
SIGNAL=TERM
#
#
#--------------------------------------------------------
#
case $1 in
up)
##
/usr/sbin/pppd-2.2 connect '/usr/sbin/chat -v \
ABORT "NO CARRIER" ABORT BUSY \
"" \\d\\datz OK-atz-OK \
atdp0081-0492-26-5112 CONNECT \
"" ogin:--ogin: takuya word: secret' \
mru $PACKET_SIZE mtu $PACKET_SIZE \
crtscts modem lock \
$DEBUG defaultroute noipdefault \
/dev/cua0 $MODEM_SPEED
;;
down)
if [ -s /var/run/ppp0.pid ]
then
/bin/kill -$SIGNAL $(/bin/cat /var/run/ppp0.pid)
fi
exit 0
;;
*)
##
/bin/cat<&2
usage: $0 {up|down}
up --- start up upp link
down - shut down ppp link
EOM
exit 1
;;
esac