SCIENTIFIC-LINUX-USERS Archives

February 2014

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Thu, 6 Feb 2014 16:56:02 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (49 lines)
On Wed, Feb 5, 2014 at 8:39 AM, =?windows-1252?Q?Bill_Askew?=
<[log in to unmask]> 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" ] &&amp; 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

ATOM RSS1 RSS2