2012-09-28

MK802 -- autologin

agetty -- autologin

1:2345:respawn:/sbin/agetty -a debian -8 -s 38400 tty1


1.
root@arm:~# dpkg -S agetty
util-linux: /usr/share/man/man8/agetty.8.gz
util-linux: /sbin/agetty
util-linux: /usr/share/doc/util-linux/README.modems-with-agetty

2.
root@arm:~# agetty --help | head

Usage:
 agetty [options] line baud_rate,... [termtype]
 agetty [options] baud_rate,... line [termtype]

Options:
 -8, --8bits                assume 8-bit tty
 -a, --autologin <user>     login the specified user automatically
 -c, --noreset              do not reset control mode
 -f, --issue-file <file>    display issue file
 -s, --keep-baud            try to keep baud rate after break


3.
root@arm:~# nano /etc/inittab
root@arm:~# cat /etc/inittab | grep respawn
z6:6:respawn:/sbin/sulogin
# 1:2345:respawn:/sbin/getty 38400 tty1
1:2345:respawn:/sbin/agetty -a debian -8 -s 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3
T2:23:respawn:/sbin/getty -L ttyO2 115200 vt102