The program that monitors the serial port and, when the modem connects,
starts the login process is called
uugetty. This is part of the getty_ps
As root, create a new file with your editor (emacs, vi) called
/etc/conf.uugetty.ttyS1 (or ttyS0 - whichever is your modem
port). This file should contain:-
# /etc/conf.uugetty.ttyS1 # SYSTEM=kepler # change for your system name VERSION=`/bin/uname -s -r` LOGIN=/bin/login ISSUE=/etc/issue INITLINE=cua1 # change to your modem port TIMEOUT=60 HANGUP=YES INIT="" \d+++\dAT\r OK\r\n ATH0\r OK\r\n AT\sZ\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. # # : <expect> <send> ... (chat sequence) CONNECT="" ATA\r CONNECT\s DELAY=2 #DEBUG=010 # uncomment this for debug output # # END /etc/conf.uugetty.ttyS1
Exit your editor and save the file. Make sure the ownership and permissions on the file are as shown above.