Don't know where I got this little script - but it usually fixes most
console problems for me...

#!/bin/sh
#   fixvt 1.00
#   Fixes console corruption from vt bombs and the like
#    (c) 1994 Brian Stoler  --  [EMAIL PROTECTED]
#    Freely redistributable under the GPL 2
#        Mail me any changes/fixes/etc
#        Send flames to /dev/null -- I'm no scripter
if [ -r /etc/?getty ]; then
 DAG=/etc/?getty
elif [ -r /sbin/?getty ]; then
 DAG=/sbin/?getty
elif [ -r /sbin/?getty ]; then
 DAG=/sbin/getty_ps
elif [ -r /sbin/?getty ]; then
 DAG=/sbin/getty_ps
elif [ -r $1 ]; then
 DAG=$1
else
 echo NO GETTY FOUND -- PUT GETTY ON CMD LINE
 exit 1
fi
cat $DAG
echo c
clear
echo Display restored.

---
Trying to define yourself is like trying to bite your own teeth.
                -- Alan Watts

D'jinnie/Jinn, encountered on IRC and select MU**. ([EMAIL PROTECTED])

Reply via email to