blob: 966af0637698a1051eaaf7fbc99b267afc805d18 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
# $FreeBSD$
#
# 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=${name}_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"
|