diff options
author | Johan van Selst <johans@FreeBSD.org> | 2006-09-21 09:27:14 +0000 |
---|---|---|
committer | Johan van Selst <johans@FreeBSD.org> | 2006-09-21 09:27:14 +0000 |
commit | 7ecbc68934a47d699b7c453e3a5ee8e51d9e1f7c (patch) | |
tree | e391fca9fb3f0600cd7763e135f9634d95b8d71c /net-mgmt/arpwatch | |
parent | 6f861cc5f11db576ff973c179d532845787be30f (diff) | |
download | ports-7ecbc68934a47d699b7c453e3a5ee8e51d9e1f7c.tar.gz ports-7ecbc68934a47d699b7c453e3a5ee8e51d9e1f7c.zip |
Notes
Diffstat (limited to 'net-mgmt/arpwatch')
-rw-r--r-- | net-mgmt/arpwatch/files/arpwatch.sh.in | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/net-mgmt/arpwatch/files/arpwatch.sh.in b/net-mgmt/arpwatch/files/arpwatch.sh.in index 5736a1ee1e0b..908737fb2406 100644 --- a/net-mgmt/arpwatch/files/arpwatch.sh.in +++ b/net-mgmt/arpwatch/files/arpwatch.sh.in @@ -11,7 +11,7 @@ #arpwatch_enable="YES" # arpwatch_enable=${arpwatch_enable:-"NO"} -arpwatch_dir="%%PREFIX%%/arpwatch/" +arpwatch_dir=${arpwatch_dir:-"%%PREFIX%%/arpwatch/"} . %%RC_SUBR%% @@ -62,15 +62,17 @@ case ${arpwatch_interfaces} in ;; *) - if [ "$1" = "start" -o "$1" = "faststart" ]; then + case "$1" in + *start) for interface in ${arpwatch_interfaces}; do eval options=\$arpwatch_${interface}_options command_args="-i ${interface} ${options} -f arp.${interface}.dat" - pidfile="/var/run/arpwatch-${interface}.pid" run_rc_command "$1" done - else + ;; + *) run_rc_command "$1" - fi + ;; + esac ;; esac |