Peter ...

We do something similar to what Ken Hall mentions.   Others have
implemented similar hacks,  notably Mike Kershaw's tool.   Ours is
just a shell script  (attached),  plus,  you'd need to modify
/etc/inittab to have something like:

        cons:12345:respawn:/sbin/suloginv console

-- R;

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
#!/bin/sh 
# 
# 
#         Date: 2000-Sep-16 (Sun) 
# 
# 
 
# 
# argument #1 can be a console filespec: 
CONSOLE="$1" 
if [ -z "$CONSOLE" ] ; then CONSOLE=/dev/console ; fi 
if [ ! -c "$CONSOLE" -a -c "/dev/$CONSOLE" ] ; then 
                                        CONSOLE="/dev/$CONSOLE" ; fi 
 
# 
# set the prompt string: 
PS1=`hostname`
#PS1="$PS1 # " 
PS1="$PS1 \\\$ " 
export PS1 
 
# 
# set the shell to something safe: 
SHELL=/bin/sh 
if [ -x /sbin/sh ] ; then SHELL=/sbin/sh ; fi 
 
# 
# add a couple important things to command search PATH var: 
if [ -d /usr/bin/X11 ] ; then PATH="$PATH:/usr/bin/X11" ; fi 
if [ -d /usr/local/bin ] ; then PATH="$PATH:/usr/local/bin" ; fi 
export PATH 
 
# 
# now run that shell: 
exec $SHELL -i 0<$CONSOLE 1>$CONSOLE 2>$CONSOLE 
 

Reply via email to