There are a dozen ways to slice this apple.
Mike Kershaw did one as a compiled executable.
I have one that is a simple shell script called frin /etc/inittab.
(See attached.)   Add the following line to /etc/inittab:

~~:01236:respawn:/sbin/suloginv /dev/console

If there is a  'getty'  set to run on your console,  turn it off,
perhaps like this:

#1:01236:respawn:/sbin/mingetty console


#!/bin/sh 
# 
# 
#         Date: 2000-Sep-16 (Sun) 
# 
# 
 
CONSOLE="$1" 
if [ -z "$CONSOLE" ] ; then CONSOLE=/dev/console ; fi 
PS1=`hostname`
#PS1="$PS1 # " 
PS1="$PS1 \\\$ " 
export PS1 
SHELL=/bin/sh 
if [ -x /sbin/sh ] ; then SHELL=/sbin/sh ; fi 
exec $SHELL -i 0<$CONSOLE 1>$CONSOLE 2>$CONSOLE 
 

Reply via email to