diff options
author | pi <pi@FreeBSD.org> | 2014-07-21 03:38:26 +0800 |
---|---|---|
committer | pi <pi@FreeBSD.org> | 2014-07-21 03:38:26 +0800 |
commit | a77db0f7a16a37cd9adff812d3c8a3f1a1305cbc (patch) | |
tree | cbdad47819acc2c6b71d57c5b3555fe709cad810 /net-mgmt/arpwatch | |
parent | b3fcac2290dca0c760eb205e0f5d44d1c50f8bdc (diff) | |
download | freebsd-ports-gnome-a77db0f7a16a37cd9adff812d3c8a3f1a1305cbc.tar.gz freebsd-ports-gnome-a77db0f7a16a37cd9adff812d3c8a3f1a1305cbc.tar.zst freebsd-ports-gnome-a77db0f7a16a37cd9adff812d3c8a3f1a1305cbc.zip |
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
Diffstat (limited to 'net-mgmt/arpwatch')
-rw-r--r-- | net-mgmt/arpwatch/files/arpwatch.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net-mgmt/arpwatch/files/arpwatch.in b/net-mgmt/arpwatch/files/arpwatch.in index c2d51e145366..c949a5016d6a 100644 --- a/net-mgmt/arpwatch/files/arpwatch.in +++ b/net-mgmt/arpwatch/files/arpwatch.in @@ -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" |