#!/bin/sh

#
#	ppp-on
#
#	Set up a PPP link
#

if [ -f /usr/spool/uucp/LCK/LCK..cufa ]
then
    echo "PPP device is locked"
    exit 1
fi

fix-cufa

(
    stty 38400 -tostop

    if chat -l LCK..cufa ABORT "NO CARRIER" ABORT BUSY "" AT OK ATDT2914623 CONNECT "" ogin: mironPPP ssword: \\qe=liv
    then
	ppp stdin debug debug mru 1300 miron: &
	sleep 10
	exit 0
    else
	echo "PPP call failed" 1>&2
	exit 1
    fi
) < /dev/cufa > /dev/cufa
