Author
Christopher Marshall (christopherlmarshall@yahoo.com)
Raw Notes on getty
# put this line in inittab d2:12345:respawn:/sbin/agetty 38400 /dev/ttyp0 vt100 # and you can connect to it using minicom like this # the -o skips the initialization, -8 tells it to pass 8 bit values through minicom -p /dev/ptyp0 -o -8 -t vt100 # I should be able to reproduce this with getty and a chat sequence # getty experiments # enter this as /etc/default/getty.ttyp0 CLEAR = NO HANGUP=YES INIT="" A\r B C\r CONNECT="" D\r E # sometimes I had to kill minicom and start over # first you do this: minicom -p /dev/ptyp0 -o -t vt100 # then you add this to inittab d3:12345:respawn:/sbin/getty ttyp0 38400 vt100 kill -HUP 1 # then inside of minicom (g->m)A\r (m->g)B (g->m)C\r (g->m)D\r (m->g)E (g connects you to login) # This would demonstrate a direct modem case, I think # put this in inittab d3:12345:respawn:/sbin/getty ttyS1 38400 vt100 # I got this to work a few times but not consistently # put this in /etc/default/getty.ttyS1 # there must be a timeout involved # perhaps if I waited for OK's # NOTE: this worked with \r\n but not with \n\r! CLEAR=NO HANGUP=YES INIT="" ATZ\r\nATA\r\n WAITFOR=CONNECT # and kill -HUP 1 # This would work for dial up CLEAR=NO HANGUP=YES INIT="" atz\r\n WAITFOR=RING CONNECT="" ata\r\n CONNECT\s\A
