blob: f27041f39f50be1cb1ae91891643e3db8c7a057c (
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
38
39
40
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: fusefs
# REQUIRE: sysctl
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# fusefs_enable (bool): Set to NO by default.
# Set it to YES to enable fusefs.
#
. %%RC_SUBR%%
kmod="fuse.ko"
name="fusefs"
rcvar=${name}_enable
start_cmd="fusefs_start"
stop_cmd="fusefs_stop"
fusefs_start()
{
echo "Starting ${name}."
kldload $kmod
}
fusefs_stop()
{
echo "Stopping ${name}."
kldunload $kmod
}
load_rc_config $name
: ${fusefs_enable="NO"}
run_rc_command "$1"
|