svn commit: r362360 - head/net-mgmt/arpwatch/files
Kurt Jaeger
pi at FreeBSD.org
Sun Jul 20 19:38:27 UTC 2014
Author: pi
Date: Sun Jul 20 19:38:26 2014
New Revision: 362360
URL: http://svnweb.freebsd.org/changeset/ports/362360
QAT: https://qat.redports.org/buildarchive/r362360/
Log:
net-mgmt/arpwatch: handle some variant of vlan interfaces
When configuring arpwatch_interfaces, /usr/local/etc/rc.d/arpwatch
failed if you use VLAN interfaces, e.g.:
arpwatch_interfaces="em0.1 em0.2 em0.3"
PR: 191344
Submitted by: dd at gizmocreative.com
Modified:
head/net-mgmt/arpwatch/files/arpwatch.in
Modified: head/net-mgmt/arpwatch/files/arpwatch.in
==============================================================================
--- head/net-mgmt/arpwatch/files/arpwatch.in Sun Jul 20 19:37:21 2014 (r362359)
+++ head/net-mgmt/arpwatch/files/arpwatch.in Sun Jul 20 19:38:26 2014 (r362360)
@@ -65,7 +65,8 @@ case ${arpwatch_interfaces} in
case "$1" in
*start)
for interface in ${arpwatch_interfaces}; do
- eval options=\$arpwatch_${interface}_options
+ rc_interface=`echo ${interface} | sed 's/\./_/g'`
+ eval options=\$arpwatch_${rc_interface}_options
command_args="-i ${interface} ${options} -f ${arpwatch_dir}/arp.${interface}.dat"
pidfile="/var/run/arpwatch-${interface}.pid"
run_rc_command "$1"
More information about the svn-ports-all
mailing list