aboutsummaryrefslogtreecommitdiff
path: root/audio/ices0/files/ices0.sh.in
blob: 698128f462d7f3f6664ae64bc7413f7e42c590cf (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
28
29
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: ices0
# REQUIRE: DAEMON
# BEFORE:  login
# KEYWORD: shutdown

# Add the following lines to /etc/rc.conf to enable ices0:
#
# ices0_enable="YES"
# ices0_flags="<set as needed>"

. /etc/rc.subr

name="ices0"
rcvar=ices0_enable

command="%%PREFIX%%/bin/$name"
command_args="1>/dev/null 2>&1"
required_files="%%PREFIX%%/etc/ices.conf"

# read configuration and set defaults
load_rc_config "$name"
: ${ices0_enable="NO"}

run_rc_command "$1"