diff options
| author | cvs2svn <cvs2svn@FreeBSD.org> | 2006-11-12 17:13:46 +0000 |
|---|---|---|
| committer | cvs2svn <cvs2svn@FreeBSD.org> | 2006-11-12 17:13:46 +0000 |
| commit | 76ea7e9dd77e976bab6546e4acb4b65ab18a77ef (patch) | |
| tree | 670eed656617d8dffd6397f85af36c544f279271 /usr.bin/chat/unlock | |
| parent | 1b1804f84b43e281dee48aeeb674959fd83d421e (diff) | |
Notes
Diffstat (limited to 'usr.bin/chat/unlock')
| -rwxr-xr-x | usr.bin/chat/unlock | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/usr.bin/chat/unlock b/usr.bin/chat/unlock deleted file mode 100755 index 978bc6e19cdb..000000000000 --- a/usr.bin/chat/unlock +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -LOCKDIR=/var/spool/lock - -case "$1" in - "") echo "Usage: unlock lockfile"; exit 1 ;; - .*) echo "Usage: unlock lockfile"; exit 1 ;; -esac - -if [ -f $LOCKDIR/$1 ] -then - if [ `wc -c < $LOCKDIR/$1` -eq 4 ] - then - rm -f $LOCKDIR/$1 - exit 0 - else - echo "Usage: unlock lockfile" - exit 1 - fi -else - echo "lockfile" $LOCKDIR/$1 "does not exist" - exit 1 -fi |
