*BSD News Article 55546


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!newsfeed.internetmci.com!usenet.eel.ufl.edu!psgrain!iafrica.com!ticsa.com!cstatd.cstat.co.za!ee.und.ac.za!nntp.und.ac.za!kestrel.ugrd.und.ac.za!chops
From: chops@kestrel.ugrd.und.ac.za (Ewan McPhail)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: How do I reset modem/unlock ttyd0?
Date: 21 Nov 1995 14:46:23 GMT
Organization: University of Natal (Durban), South Africa
Lines: 30
Message-ID: <48sonv$848@owl.und.ac.za>
NNTP-Posting-Host: kestrel.ugrd.und.ac.za
X-Newsreader: TIN [version 1.2 PL2]

Hi All,

This is a semi-urgent hassle, so I'd truly appreciate anyone
who could assist me...

I have problems on my machine with the modem "hanging" - ie it
remains "off hook" when someone drops carrier.

What I want to know in the interim is how do I unlock the 
device (ttyd0) - I know FreeBSD created "locking" files
in /dev so nobody else can access the modem - as root, I get
"device in use" when trying to output to it.

Will something like "echo +++ath0^M >> /dev/ttyd0" do what I
presume it will? And if not, how do I reset the modem 
without rebooting (a reboot does, however, solve the hassle)??

Much appreciated anyone...and if you know what causes the 
hassle in the first place, I will be eternally gratefull :)

	-Ewan

---
 _______  
|  _____|wan McPhail - Computer Science undergrad at UND, South Africa.
| |___     mcphail@beastie.cs, chops@kestrel.ugrd (SysAdmin and WebMaster)
|  ___|            <URL:http://kestrel.ugrd.und.ac.za/~chops/>
| |_____   Chairman of UND-IS, the UND Internet Society  
|_______|