blob: 3cc7fea48abebfd2f459f9a69b07bf94220b62a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
depend() {
need net
use cupsd
}
start() {
ebegin "Starting arpwatch"
if [ ! -e /var/arpwatch/arp.dat ]; then
touch /var/arpwatch/arp.dat
fi
/usr/sbin/arpwatch -i eth0 -f /var/arpwatch/arp.dat
result=$?
eend $result
}
stop() {
ebegin "Stopping arpwatch"
killall arpwatch > /dev/null
result=$?
eend $result
}
|