summaryrefslogtreecommitdiffstats
path: root/usr.bin/chat/fix-cua
blob: 74f000a30f624d114018b120e8c88396c1ddd758 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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
OpenPOWER on IntegriCloud