industrialNETworXnetx

M T

M T

Hilscher Gesellschaft für Systemautomation mbH

| 17.07.2007 | 15:43 | 0 replies

Autologin on NXEB500HMI

This is a standard linux question and is discussed on many linux newsgroups.

Look into the appropriate manpages (e.g. man getty, man login)

The straightforward way is to write a little shell script (called mylogin in this case)

#!/bin/sh
exec login -f root

Edit the /etc/inittab to look like the following:
#                                                                                                         
# /etc/inittab                                                                                            
#                                                                                                         
# $Id: inittab 1681 2004-09-01 18:12:49Z  $                                                               
#                                                                                                         
                                                                                                          
console::sysinit:/etc/init.d/rcS                                                                          
console::respawn:/sbin/getty -n -l /bin/mylogin -L 115200 /dev/ttyNX0 vt100                               
                                                                                                          
# Stuff to do before rebooting                                                                            
::ctrlaltdel:/sbin/reboot                                                                                 
::shutdown:/bin/umount -a -r                                                                              

Regards

MT

Login