Date: Sun, 12 Feb 1995 21:29:58 -0500 (EST) From: Marc Ramirez <mrami@mramirez.sy.yale.edu> To: Pete Shipley <shipley@merde.dis.org> Cc: questions@FreeBSD.org Subject: Re: slattach Message-ID: <Pine.BSI.3.91.950212212136.2133B-100000@mramirez.sy.yale.edu> In-Reply-To: <199502122250.OAA08702@merde.dis.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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!"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.91.950212212136.2133B-100000>