From owner-freebsd-questions Sun Feb 12 18:30:30 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id SAA09395 for questions-outgoing; Sun, 12 Feb 1995 18:30:30 -0800 Received: from mramirez.sy.yale.edu (mramirez.sy.yale.edu [130.132.57.207]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id SAA09387 for ; Sun, 12 Feb 1995 18:30:25 -0800 Received: (from mrami@localhost) by mramirez.sy.yale.edu (8.6.9/8.6.9) id VAA02149; Sun, 12 Feb 1995 21:29:58 -0500 Date: Sun, 12 Feb 1995 21:29:58 -0500 (EST) From: Marc Ramirez To: Pete Shipley cc: questions@FreeBSD.org Subject: Re: slattach In-Reply-To: <199502122250.OAA08702@merde.dis.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: questions-owner@FreeBSD.org Precedence: bulk On Sun, 12 Feb 1995, Pete Shipley wrote: > does anyone successfully use "slattach -r" to setup a slip link. I saw Nate Williams' message, but for some reason, I was never able to get chat to work on my system (but I didn't fool with it for too long). My problem was that as long as the slattach process existed, I could never open the port to talk to the modem (neither call in nor call out). The following is the kermit script I use: ------------- /etc/reattach.ks -------------- set take echo on set input timeout proceed # deconstruct old network connection: kill slattach and take sl0 down ! ps -ax|grep slattach|grep -v grep|awk '{print $1}'|xargs kill ! ifconfig sl0 down # dial provider set line /dev/cuaa1 set speed 57600 set modem hayes :dialloop dial 4329580 xif success { - set speed 57600, - script -- mrami ord: melech54 1> slip ame: 130.132.57.207 ord: melech54 , - in 5 130.132.57.207, - xif failure {echo Failed to get 130.132.57.207!, goto dialloop} - } else {sleep 2, goto dialloop} # reattach set line ! slattach -h -c -s 57600 -r /etc/reattach /dev/ttyd1 ! ifconfig sl0 up ! logger "modem attached" quit ------------- /etc/reattach.ks -------------- /etc/reattach simply does: /usr/local/bin/kermit -y /etc/reattach.ks 2>&1 >/reattach.log so when I want to connect to the net, I simply execute /etc/reattach. Marc. -- DeForrest Gump - "Dammit, Jim! Life is like a box of chocolates!"