diff options
author | lars <lars@FreeBSD.org> | 1994-11-12 05:25:32 +0000 |
---|---|---|
committer | lars <lars@FreeBSD.org> | 1994-11-12 05:25:32 +0000 |
commit | f84d7d9abf30dea850c2432536f0ebf1c7e9a745 (patch) | |
tree | 70acd77d31b1f8699186acf513127e900de4ef81 /usr.bin/chat | |
download | FreeBSD-src-f84d7d9abf30dea850c2432536f0ebf1c7e9a745.zip FreeBSD-src-f84d7d9abf30dea850c2432536f0ebf1c7e9a745.tar.gz |
chat for ppp, from ppp 2.1.2
Diffstat (limited to 'usr.bin/chat')
-rw-r--r-- | usr.bin/chat/fix-cua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/usr.bin/chat/fix-cua b/usr.bin/chat/fix-cua new file mode 100644 index 0000000..74f000a --- /dev/null +++ b/usr.bin/chat/fix-cua @@ -0,0 +1,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 |