#!/bin/sh

# $FreeBSD: dns/adsuck/files/adsuck.in 300896 2012-07-14 13:54:48Z beat $
#
# PROVIDE: adsuck
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable adsuck:
#
# adsuck_enable (bool):   Set to NO by default.

. /etc/rc.subr

name="adsuck"
rcvar=adsuck_enable

command=/usr/local/sbin/${name}
extra_commands="reload"

load_rc_config $name

: ${adsuck_enable="NO"}
: ${adsuck_flags="-c /var/adsuck -f resolv.conf -r regex Hosts.blc Hosts.pub Hosts.rsk Hosts.trc hosts.small hosts.yoyo"}

run_rc_command "$1"
