This works for me assuming a modem on com1, server IP of 10.105.1.50, PPP IP of 10.105.1.150, DNS 10.105.1.1, netmask of 255.255.255.0.
Commands and keypresses are in bold, comments in italics, text entered into files in code blocks.
yum install mgetty
finish the install thing and then start making directories and files..
mkdir /etc/e-smith/templates-custom/etc
mkdir /etc/e-smith/templates-custom/etc/inittab
vi /etc/e-smith/templates-custom/etc/inittab/90serial
press i to go into insert editing and enter the following text
# templates-custom for dial in server
s0:23457:respawn:/sbin/mgetty -D ttyS0
press esc then : then x to save the file. Next we will expand the custom template into /etc/inittab, reread inittab and test.
expand-template /etc/inittab
init q
ps -ef | grep mgetty
You should get back something like this:
root 672 1 0 11:43 ? 00:00:00 /sbin/mgetty -D ttyS0
root 1060 3667 0 11:44 pts/0 00:00:00 grep mgetty
Next set up the PPP stuff.
vi /etc/mgetty+sendfax/login.config
Look for this line:
#/AutoPPP/ - a_ppp /usr/sbin/pppd auth -chap +pap login debug
put the cursor on the # at the beginning of the line and press x then esc then : and x to save the changes.
Next we will make another custom template:
# mkdir /etc/e-smith/templates-custom/etc/ppp
# mkdir /etc/e-smith/templates-custom/etc/ppp/pap-secrets
# vi /etc/e-smith/templates-custom/etc/ppp/pap-secrets/05dialup-password
you know what to do with vi now.
# templates-custom for dial in
user001 * user001 *
And a couple of more files...
vi /etc/ppp/options.server
-detach
asyncmap 0
modem
crtscts
lock
proxyarp
ms-dns 10.105.1.1
vi /etc/ppp/options.ttyS0
10.105.1.50:10.105.1.150
netmask 255.255.255.0
I think that is it! YMMV Good luck!