*BSD News Article 88859


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!su-news-hub1.bbnplanet.com!news.bbnplanet.com!arclight.uoregon.edu!news.uoregon.edu!xmission!s_leigh.dtint.com!user
From: seth_leigh@dtint.com (Seth Leigh)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: How to kill modem?
Date: Mon, 10 Feb 1997 15:43:37 -0800
Organization: Digital Technology International, Inc.
Lines: 36
Message-ID: <seth_leigh-1002971543370001@s_leigh.dtint.com>
NNTP-Posting-Host: itchy.itsnet.com
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35285

Hi all.  I recently built a FreeBSD box, and for a few days had the dial
on demand ppp working.  I am using FreeBSD 2.2-BETA, by the way.  I seem
to have screwed up the ppp dialup and routing on this box, but that's a
subject for another post (which I posted already).

Anyways, when I finally get the dang routing and dialup working again, I
am looking for a way to kill the modem connection (and properly hang up
and reset the modem) on demand.  I only have one phone line in the house. 
I set the timetout on the ppp connection to only 5 minutes, because if I
am not actively using the ppp connection at the moment, I don't want to
miss many calls to my house.  If I have been on the internet for
something, and my wife wants to call somebody, I currently have to telnet
to my own machine with port 3000 to get back into the ppp program, then
close the connection and quit out of there.  Problem is, this is a bother.

Can anyone suggest an approach to writing a shell script or something that
can close the modem connection without leaving my modem in La-La Land, so
that after the wife gets off the phone I can cause the ppp program to dial
up my ISP again?

I am a relative Unix neophyte. I used unix on HP workstations in school,
and now use Unix in a limited way at work, and been dorking around getting
things set up on this FreeBSD box, but I am not exactly a Unix guru yet. 
I am a programmer though, so I am not scared by technical details and
such, as long as you don't assume I know all the Unix jargon.  If you will
be as specific as possible with any suggestions, that would be
appreciated.

TIA,

Seth

-- 
J. Seth Leigh                          seth_leigh@dtint.com
Digital Technology Int.               (801)226-2984
500 W. 1200 South, Orem UT, 84057     FAX (801) 226-8438