[Prev][Next][Index][Thread]
Re: modem in and out
On Thu, 8 Aug 1996, Eli Algranti wrote:
> Have you tried using uugetty? Does it work in your site? If so, can
> you supply me with your conf.uugetty.*. Messages with "There is a
> way!" with no additional information serves only to annoy.
Hmmm... as my late grand grand father always said: "Don't get mad, get
even" ;-)
Here is the /etc/conf.uugetty.ttyS2 from my RedHat picasso, kernel 2.0.0
system and it works perfectly. The only thing i needed to do is take the
examples file from the docs that came with getty_ps and change it to
/dev/ttyS2 where needed.
<notice the first directive is worng, btw ;-) >
# [ put this file in /etc/default/uugetty.<line> ]
#
# sample uugetty configuration file for a Hayes compatible modem to allow
# incoming modem connections
#
# this config file sets up uugetty to answer with a WAITFOR string. When
# using waitfor, it is necessary to specify INITLINE=cua?
# line to use to do initialization. All INIT, OFF, and WAITFOR functions
# are handled on this line. If this line is not specified, any other
# program that wants to share the line (like kermit, uucp, seyon) will
# fail. This line will also be checked for lockfiles.
#
# format: <line> (without the /dev/)
INITLINE=cua2
# timeout to disconnect if idle...
TIMEOUT=60
# modem initialization string... Sets the modem to disable auto-answer
#
# format: <expect> <send> ... (chat sequence)
INIT="" \d+++\dAT\r OK\r\n ATH0\r OK\r\n AT\sM0\sE1\sQ0\sV1\sX4\sS0=0\r OK\r\n
# waitfor string... if this sequence of characters is received over the line,
# a call is detected.
WAITFOR=RING
# this line is the connect chat sequence. This chat sequence is performed
# after the WAITFOR string is found. The \A character automatically sets
# the baudrate to the characters that are found, so if you get the message
# CONNECT 2400, the baud rate is set to 2400 baud.
#
# format: <expect> <send> ... (chat sequence)
CONNECT="" ATA\r CONNECT\s\A
# this line sets the time to delay before sending the login banner
DELAY=1
Just stick this in /etc and it should work.
A silly note: the file name must be conf.uugetty.ttyS2 and not
conf.uugetty.ttys2. silly, but this cost me a half of an hour to
understand...
Now there! ;-)
+-----------------------------------------------------------------------+
| Gilad Ben-Yossef gby@netvision.net.il gby2@post.tau.ac.il |
+-----------------------------------------------------------------------+
| Telco: 972-(0)3-9620269, 972-(0)-9629038 |
| HomePage: http://www.oblisc.co.il/gilad.index.html |
+-----------------------------------------------------------------------+
| Aleph-null bottles of beer on the wall, Aleph-null bottles of beer... |
+-----------------------------------------------------------------------+
References: