linamh/sys-fs/fuse/files/fuse-fbsd.init

24 lines
467 B
Plaintext
Raw Normal View History

2011-12-03 21:16:15 +01:00
#!/sbin/runscript
# 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 ${?}
}