I also did Embedded OS now,so i can give you an example for referrence:
First,modify /etc/inittab:
Code:
......
T0:12345:respawn:/sbin/autologin ttyS0 login -f root
......
ps: that's the example for autologin by UART(COM1), so here is ttyS0
Then,/sbin/autologin:
Code:
#!/bin/sh
exec 0</dev/$1>/dev/$1 2>&1
shift
exec $*
ps:make sure this script can be executable ,if not ,using chmod +x /sbin/autologin by root.
hope to help