#!/bin/sh # fixvt 1.00 # Fixes console corruption from vt bombs and the like # (c) 1994 Brian Stoler -- sto2@netaxs.com # 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.