*BSD News Article 16833


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!decwrl!amdcad!BitBlocks.com!bvs
From: bvs@BitBlocks.com (Bakul Shah)
Subject: Re: Autodial slip for NetBSD
Message-ID: <C83y85.LCH@BitBlocks.com>
Organization: Bit Blocks, Inc.
References: <C83JBt.2L2@unice.demon.co.uk>
Date: Fri, 4 Jun 1993 17:36:03 GMT
Lines: 34

chris@unice.demon.co.uk (Chris Boyes) writes:

>I have dialup slip working manualy by useing tip to login to my
>dialup IP sevice and then shell out of tip and run slattach.

I use a modified tip from the cslip package.  This allows me to
make a slip connection by doing nothing but

	tip remote-host

This tip calls sliplogin once the connection is made. Though,
setting up various files to make this work was no fun and I had
to fix a dialer bug in tip for the modem I am using.

>Does anyone have a substitute for tip - a comms package for example
>or any other method to autodial and start slattach, preferably
>something simple.

You can try `chat' from ppp-1.2 (or ppp-1.1).  It will run a uucp
dialer style dialog on its stdin/stdout and exit with 1 on on
failure and 0 if the dialog succeeded.  Something like

#!/bin/sh
(
	chat "" "ATDT 1 800 555 1212" CONNECT "" \
	     "olgin:" "\r\your-name" assword: "\qyour-password"  || exit 1
	slattach 38400 /dev/cua1
	/sbin/ifconfig sl0 inet my-host remote-host netmask 255.255.255.0
	# setup any routes
) < /dev/cua1 > /dev/cua1 

may do the trick.

Bakul Shah