head	1.4;
access;
symbols
	RELENG_2_2_8_RELEASE:1.3.6.2
	RELENG_2_2_7_RELEASE:1.3.6.2
	RELENG_2_2_6_RELEASE:1.3.6.2
	RELENG_2_2_5_RELEASE:1.3.6.2
	RELENG_2_2_2_RELEASE:1.3
	RELENG_2_2_1_RELEASE:1.3
	RELENG_2_2_0_RELEASE:1.3
	RELENG_2_1_7_RELEASE:1.3
	RELENG_2_1_6_1_RELEASE:1.3
	RELENG_2_1_6_RELEASE:1.3
	RELENG_2_2:1.3.0.6
	RELENG_2_2_BP:1.3
	RELENG_2_1_5_RELEASE:1.3
	RELENG_2_1_0_RELEASE:1.3
	RELENG_2_1_0:1.3.0.4
	RELENG_2_1_0_BP:1.3
	RELENG_2_0_5_RELEASE:1.3
	RELENG_2_0_5:1.3.0.2
	RELENG_2_0_5_BP:1.3
	RELENG_2_0_5_ALPHA:1.3
	RELEASE_2_0:1.1.1.1
	BETA_2_0:1.1.1.1
	chat:1.1.1.1;
locks; strict;
comment	@# @;


1.4
date	97.08.22.15.42.32;	author peter;	state dead;
branches;
next	1.3;

1.3
date	94.12.19.01.22.21;	author ache;	state Exp;
branches
	1.3.6.1;
next	1.2;

1.2
date	94.12.19.01.14.58;	author ache;	state Exp;
branches;
next	1.1;

1.1
date	94.11.12.05.25.30;	author lars;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	94.11.12.05.25.31;	author lars;	state Exp;
branches;
next	;

1.3.6.1
date	97.09.14.20.39.31;	author jkh;	state Exp;
branches;
next	1.3.6.2;

1.3.6.2
date	97.09.14.20.40.13;	author jkh;	state dead;
branches;
next	;


desc
@@


1.4
log
@Cleanup and remove the not-too-useful examples.  The current versions
should be in share/examples if anywhere.
@
text
@#!/bin/sh

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

LOCKDIR=/var/spool/lock
DEVICE=cuaa0

PHONE=4511234
USER=Pkarl
PASSWORD=password
OUR_IP_ADDR=137.175.6.3

if [ -f $LOCKDIR/LCK..$DEVICE ]
then
    echo "PPP device is locked"
    exit 1
fi

(
    stty 19200 -tostop

    if chat -l LCK..$DEVICE ABORT "NO CARRIER" ABORT BUSY "" ATZ OK ATs50=255s111=0DT$PHONE CONNECT "" ogin: $USER ssword: \\q$PASSWORD
    then
	ppp mru 1500 $OUR_IP_ADDR: /dev/$DEVICE &
	sleep 10
	exit 0
    else
	echo "PPP call failed" 1>&2
	exit 1
    fi
) < /dev/$DEVICE > /dev/$DEVICE
@


1.3
log
@Use proper device names.
Remove fix-cua script, does nothing good.
@
text
@@


1.3.6.1
log
@MFC:  various bug fixes, doc updates and EOF -> -1 fixes.
@
text
@d1 35
@


1.3.6.2
log
@MFC: remove nuked files.
@
text
@@


1.2
log
@Use proper dialout device name
@
text
@a22 2
fix-cua $DEVICE

@


1.1
log
@Initial revision
@
text
@d10 1
a10 1
DEVICE=com1
@


1.1.1.1
log
@chat for ppp, from ppp 2.1.2
@
text
@@
