Path: blob/main/dns/adsuck/files/adsuck.in
16149 views
#!/bin/sh
# 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=%%PREFIX%%/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"