#!/bin/sh
# $Id: ttyclean,v 1.1 1995/03/28 20:14:54 jdd Exp $
# SIGKILL every process holding open this tty
if [ $# != 1 ]; then
  echo usage $0 tty 2>&1 
  exit 1
fi
if [ `/bin/expr $1 : '^/'` -eq 1 ]; then 
TTYDEV="$1"
else 
TTYDEV="/dev/$1"
fi 
exec /usr/sbin/fuser -k $TTYDEV 2>&1 >/dev/null
