Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jul 2014 19:38:26 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r362360 - head/net-mgmt/arpwatch/files
Message-ID:  <201407201938.s6KJcQ9q030290@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407201938.s6KJcQ9q030290>