On Wed, Feb 5, 2014 at 8:39 AM, =?windows-1252?Q?Bill_Askew?= <r.w.as...@boeing.com> wrote: > > I created a file tty1.conf > Containing > > stop on runlevel [S016] > > respawn > exec /sbin/mingetty --autologin <your user name> /dev/tty1 > > I I modified start-ttys.conf like this; > > start on stopped rc RUNLEVEL=[2345] > > env ACTIVE_CONSOLES=/dev/tty[1-6] > env X_TTY=/dev/tty2 > task > script > . /etc/sysconfig/init > for tty in $(echo $ACTIVE_CONSOLES) ; do > [ "$RUNLEVEL" = "5" -a "$tty" = "$X_TTY" ] && continue > initctl start tty TTY=$tty > done > initctl start tty1 > end script
# cat /etc/sysconfig/init ... ACTIVE_CONSOLES=/dev/tty[2-6] ... # cat /etc/init/start-ttys.override start on stopped rc RUNLEVEL=[2345] env X_TTY=/dev/tty7 task script . /etc/sysconfig/init for tty in $(echo $ACTIVE_CONSOLES) ; do [ "$RUNLEVEL" = "5" -a "$tty" = "$X_TTY" ] && continue initctl start tty TTY=$tty done exec /sbin/mingetty --autologin root /dev/tty1 end script