diff options
Diffstat (limited to 'sys-fs/fuse-common/files/fuse-fbsd.init')
-rw-r--r-- | sys-fs/fuse-common/files/fuse-fbsd.init | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sys-fs/fuse-common/files/fuse-fbsd.init b/sys-fs/fuse-common/files/fuse-fbsd.init new file mode 100644 index 000000000000..27d90cc867f3 --- /dev/null +++ b/sys-fs/fuse-common/files/fuse-fbsd.init @@ -0,0 +1,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 ${?} +} |