aboutsummaryrefslogtreecommitdiff
path: root/multimedia/webcamd/files/webcamd.in
blob: 965f75a46d3eca10cff510ac436bfd169363af7e (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
#!/bin/sh
# $FreeBSD$
#
# PROVIDE: webcamd
# REQUIRE: DAEMON
#
# Add the following line to /etc/rc.conf[.local] to enable webcamd:
#
# webcamd_enable="YES"
#

webcamd_enable=${webcamd_enable-"NO"}

. %%RC_SUBR%%

name=webcamd
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/webcamd
command_args="-B"

load_rc_config $name
if [ $# -gt 1 ]; then
	command_args="$command_args -d $2 -i 0"
fi
run_rc_command $1