]> git.pld-linux.org Git - packages/arpwatch.git/commitdiff
- add NETWORKS support (-n option in arpwatch)
authorundefine <undefine@pld-linux.org>
Fri, 14 Jun 2002 17:42:24 +0000 (17:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    arpwatch.init -> 1.14
    arpwatch.sysconfig -> 1.2

arpwatch.init
arpwatch.sysconfig

index f0e4f7d334dbb6713cd0d1ea45c969ac9c2c27b1..2239fb1f6c06b5ce03ad5a72b584c0e77bcf7088 100644 (file)
@@ -31,10 +31,11 @@ case "$1" in
                          | egrep '^[^ ].*' |egrep -v "NOARP|LOOPBACK" \
                          |sed 's/[0-9]*: \([a-zA-Z0-9]*\)[@:].*/\1/'|xargs`"
                fi
+               [ ! -z "$NETWORKS" ] && NETWORKS="-n $NETWORKS"
                for IFC in $INTERFACES; do
                        msg_starting "arpwatch ($IFC)"
                        touch /var/lib/arpwatch/$IFC.dat
-                       daemon arpwatch -i $IFC -f /var/lib/arpwatch/$IFC.dat -u daemon
+                       daemon arpwatch $NETWORKS -i $IFC -f /var/lib/arpwatch/$IFC.dat -u daemon
                        RETVAL=$?
                        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/arpwatch
                done
index 646995aaea3b4db7252952059b0e83a8fcae4060..92bbc1f61242034794d96ff7a524c8a3e8a01ff2 100644 (file)
@@ -3,3 +3,6 @@ SERVICE_RUN_NICE_LEVEL="+5"
 
 # Name of monitored interfaces
 INTERFACES=
+
+# networks to control
+NETWORKS=
This page took 1.555241 seconds and 4 git commands to generate.