I want to make centos show a tui (ncurses program) after boot and without login.I don't want the login prompt to be displayed.Program functions: Network configuration, Reboot, ShutdownIs there any to way to achieve that?
Execute ncurses program after boot
centos;boot
So, after some googling I found two solutions:https://serverfault.com/questions/323289/replacing-tty-with-a-script-in-centos-6andhttps://www.centos.org/forums/viewtopic.php?t=2414Finally I come up with the following:1) Create '/etc/init/launch.conf' with this content:start on stopped rc RUNLEVEL=[2345]stop on runlevel [S016]respawnconsole ownerexec /usr/bin/openvt -c 1 -w -f -- /usr/sbin/setupIn this example it runs text mode setup tool2) Edit '/etc/init/start-ttys.conf' to replace the tty with launch:start on stopped rc RUNLEVEL=[2345]env ACTIVE_CONSOLES=/dev/tty[1-6]env X_TTY=/dev/tty1taskscript    . /etc/sysconfig/init    for tty in $(echo $ACTIVE_CONSOLES) ; do        [ $RUNLEVEL = 5 -a $tty = $X_TTY ] && continue        #initctl start tty TTY=$tty        initctl start launch TTY=$tty    doneend scriptI don't know if this is the best solution, but it's working and the setup program is displayed after boot.