1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-23 07:31:31 +00:00
freebsd/usr.bin/chat/fix-cua
1994-11-12 05:25:32 +00:00

17 lines
222 B
Bash

#!/bin/sh
LOCKDIR=/var/spool/lock
case "$1" in
"") echo "Usage: fix-cua device"; exit 1 ;;
esac
if [ -f $LOCKDIR/LCK..$1 ]
then
echo "/dev/$1 is locked" 2>&1
exit 1
fi
chown root /dev/$1
chmod 666 /dev/$1