Using the Babylon TTY Driver
----------------------------

The Babylon TTY driver uses the same PPP stack as the Spellcaster ISDN
cards. The same interface is used (babylon.conf). However, because we are
accessing a modem or serial line, an external daemon is required to dial the
modem and set the call. bttyd does this function. bttyd reports it's status
to syslog as well as shows it's current status in the process list
(ie. run ps ax).  btty reads it's config file (/etc/babylon/bttyd.conf)
on startup (see bttyd.8 for details) and will re-read it again is issues a
SIGHUP. bttyd also creates a babylon port for the tty driver (see
/proc/bab_chan) when it starts; however, it does not remove this babylon
port when it terminates/dies. This is done because bttyd simplely connects
the serial port to babylon in the kernel and sleeps. If bttyd dies,
theoritically, the connection can remain active (although no new connections
could be made).

DIAL OUT
========

To use the TTY driver, do the following:
1) Compile and install Babylon and include the TTY driver.
2) Modify the startup script to load the tty driver module: btty
3) Modify the startup script to load the bttyd daemon AFTER babylond. This
is necessary because bttyd communicates with babylond.
4) Edit /etc/babylon/bttyd.conf to configure the serial port(s) you'd like
to use with the tty driver.
5) Edit /etc/babylon/babylon.conf (older systems might have it as
/etc/babylon.conf...move this file to /etc/babylon directory) for the user
setup you want
6) Run bdial sysname phonenum to dial. Follow the syslog to see what's
happening.

DIAL IN
=======

1) Follow the procedure for Dial Out above.
2)
-If you are using a normal getty, setup a user with a shell of
/usr/sbin/battach. THis also requires a user in babylon.conf.
-If you are using faxgetty from hylafax, and you only use the modem
for PPP connections (ie. no one gets a login: prompt), you can setup
Hylafax to call /usr/sbin/battach and set the gettyargs to "-f". This will
have Babylon take over modem calls and use PAP/CHAP authentication for
your PPP connections.
-If you use mgetty, set it up for AutoPPP and set the AutoPPP program
to be battach.
3) Edit /etc/babylon/babylon.conf for all users that you want to access
your system through Babylon.

