aboutsummaryrefslogtreecommitdiff
path: root/graphics/sane-backends/files/saned.in
blob: ae4345a58a05b831c33c5047d47586835689664d (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
30
31
32
33
34
35
36
37
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: saned
# REQUIRE: netif routing mountcritlocal
# BEFORE:  NETWORKING
#
# A sample saned startup script.
#
# Add the following line to /etc/rc.conf to enable saned:
#	saned_enable="YES"
#

. /etc/rc.subr

name="saned"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/${name}"

start_precmd=${name}_prestart

saned_prestart()
{
	case "${saned_flags}" in
	*-a\ *) err "saned_flags includes the -a option. Please use saned_uid instead." ;;
	esac
}

load_rc_config $name

: ${saned_enable="NO"}
: ${saned_uid="saned"}

command_args="-a $saned_uid"

run_rc_command "$1"