summaryrefslogtreecommitdiff
blob: 27d90cc867f3492b6f04d4d685662e6415afb03d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/openrc-run
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
	need localmount
}

start() {
	ebegin "Starting fuse"
	if ! kldstat -q -m fuse; then
		kldload fuse >/dev/null 2>&1 || eerror $? "Error loading fuse module"
	fi
	eend ${?}
}

stop() {
	ebegin "Stopping fuse"
	if kldstat -q -m fuse; then
		kldunload fuse >/dev/null 2>&1 || eerror $? "Error unloading fuse module"
	fi
	eend ${?}
}