summaryrefslogtreecommitdiff
path: root/net-mgmt/arpwatch-devel/files/arpwatch.sh
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2003-10-02 20:55:58 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2003-10-02 20:55:58 +0000
commit1cf501d6f87b43d3b20cdc1df1942dccff3796bd (patch)
tree888348323662d1fceb365259a7bc1b95e8e8d3f1 /net-mgmt/arpwatch-devel/files/arpwatch.sh
parent. s:NO_CDROM:RESTRICTED: as neither the distfiles nor the packages should (diff)
This commit was manufactured by cvs2svn to create tag 'RELEASE_4_9_0'.release/4.9.0
Notes
Notes: svn path=/head/; revision=90063 svn path=/tags/RELEASE_4_9_0/; revision=90064; tag=release/4.9.0
Diffstat (limited to 'net-mgmt/arpwatch-devel/files/arpwatch.sh')
-rw-r--r--net-mgmt/arpwatch-devel/files/arpwatch.sh52
1 files changed, 0 insertions, 52 deletions
diff --git a/net-mgmt/arpwatch-devel/files/arpwatch.sh b/net-mgmt/arpwatch-devel/files/arpwatch.sh
deleted file mode 100644
index 259a9cbdac1f..000000000000
--- a/net-mgmt/arpwatch-devel/files/arpwatch.sh
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-
-if [ -r /etc/defaults/rc.conf ]; then
- . /etc/defaults/rc.conf
- source_rc_confs
-elif [ -r /etc/rc.conf ]; then
- . /etc/rc.conf
-fi
-
-prog=$(realpath $0) || exit 1
-dir=${prog%/*}
-PREFIX=${dir%/etc/rc.d}
-
-if [ ."$dir" = ."$prog" -o ."$PREFIX" = ."$dir" ]
-then
- echo "$0: Cannot determine the PREFIX" >&2
- exit 1
-fi
-
-case $1 in
-start)
- if [ ! -e "$PREFIX"/arpwatch/arp.dat ]; then
- if [ -e "$PREFIX"/arpwatch/arp.dat- ]; then
- cp "$PREFIX"/arpwatch/arp.dat- "$PREFIX"/arpwatch/arp.dat
- else
- touch "$PREFIX"/arpwatch/arp.dat
- fi
- fi
-
- case ${arpwatch_interfaces} in
- '')
- if [ -x "$PREFIX"/sbin/arpwatch -a -d "$PREFIX"/arpwatch ]; then
- "$PREFIX"/sbin/arpwatch && echo -n ' arpwatch'
- fi
- ;;
- *)
- for interface in ${arpwatch_interfaces}; do
- "$PREFIX"/sbin/arpwatch -i "${interface}" && echo -n " arpwatch(${interface})"
- done
- ;;
- esac
- ;;
-stop)
- killall arpwatch && echo -n ' arpwatch'
- ;;
-*)
- echo "Usage: `basename $0` {start|stop}" >&2
- exit 64
- ;;
-esac
-
-exit 0