1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

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
This commit is contained in:
Kurt Jaeger 2014-07-20 19:38:26 +00:00
parent 7b51800455
commit c38a4c7672
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362360

View File

@ -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"