summaryrefslogtreecommitdiffstats
path: root/usr.bin/chat/unlock
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-08-22 15:42:33 +0000
committerpeter <peter@FreeBSD.org>1997-08-22 15:42:33 +0000
commitf84d7f28e5ab44e364439b04c58bc829746f2cc9 (patch)
treef509bb6a53a909b549cc8c9d221cbcf9f9b62590 /usr.bin/chat/unlock
parent61139236be247affdd23a0a9ef33b8923fb75a0a (diff)
downloadFreeBSD-src-f84d7f28e5ab44e364439b04c58bc829746f2cc9.zip
FreeBSD-src-f84d7f28e5ab44e364439b04c58bc829746f2cc9.tar.gz
Cleanup and remove the not-too-useful examples. The current versions
should be in share/examples if anywhere.
Diffstat (limited to 'usr.bin/chat/unlock')
-rwxr-xr-xusr.bin/chat/unlock23
1 files changed, 0 insertions, 23 deletions
diff --git a/usr.bin/chat/unlock b/usr.bin/chat/unlock
deleted file mode 100755
index 978bc6e..0000000
--- 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
OpenPOWER on IntegriCloud