From owner-freebsd-current Wed Nov 15 16:20:29 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id QAA11857 for current-outgoing; Wed, 15 Nov 1995 16:20:29 -0800 Received: from rocky.sri.MT.net (rocky.sri.MT.net [204.182.243.10]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id QAA11844 ; Wed, 15 Nov 1995 16:20:20 -0800 Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id RAA07568; Wed, 15 Nov 1995 17:22:45 -0700 Date: Wed, 15 Nov 1995 17:22:45 -0700 From: Nate Williams Message-Id: <199511160022.RAA07568@rocky.sri.MT.net> To: "Julian H. Stacey" Cc: current@freebsd.org Subject: Re: startslip In-Reply-To: <199511142157.WAA12142@vector.eikon.e-technik.tu-muenchen.de> References: <199511142157.WAA12142@vector.eikon.e-technik.tu-muenchen.de> Sender: owner-current@freebsd.org Precedence: bulk > No point reinventing the wheel ..... > Has anyone got patches to convert src/sbin/startslip to accept > a syntax like: > startslip ........ device user1 passwd1 user2 passwd Excuse me, but *what*? > ( where an arbitrary amount of crud may occur from a line switching box > between the end of passwd1 and prior to the login: prompt for user2 ) This sounds like something that's already built-in to slattach. slattach -a -h -r /etc/sliphome/dial -s 115200 cuaa1 Where /etc/sliphome/dial is: #!/bin/sh # # # This program uses the chat program to (re)dial and connect back up to the # SLIP host PHONE=1234567 USER=Slipuser PASSWORD=secret DEVICE=cuaa1 # XXX - As it stands now, we try to dial the remote site every 10 seconds # or so until it answers. It would be better to have an exponential # backoff algorithm, but this way is much easier to write and guarantees # a connection as soon as one is available. # Wait just a little for the line to settle down sleep 10 (if chat -v ABORT "NO CARRIER" ABORT BUSY "" ATZ1 OK ATM0 OK ATDT$PHONE CONNECT "" ogin: $USER ssword: \\q$PASSWORD then exit 0 else exit 1 fi ) < /dev/$DEVICE > /dev/$DEVICE Is this what you are looking for? Nate