vp-build/srcpkgs/fuse/files/fuse.rc
Juan RP 05d506a28b Added fuse-2.8.1 build template.
--HG--
extra : convert_revision : 40572a03b6891841f12b408c746ef00df86ce370
2009-11-30 07:35:37 +01:00

31 lines
528 B
Plaintext

#!/sbin/runscript
FUSECTL_SYSFS=/sys/fs/fuse/connections
depend()
{
need localmount
}
start()
{
ebegin "Starting fuse"
if ! grep -qw fuse /proc/filesystems; then
modprobe fuse >/dev/null 2>&1 || eend $?
fi
if grep -qw fusectl /proc/filesystems && \
! grep -qw $FUSECTL_SYSFS /proc/mounts; then
mount -t fusectl none $FUSECTL_SYSFS >/dev/null 2>&1 || eend $?
fi
eend
}
stop()
{
ebegin "Stopping fuse"
if grep -qw $FUSECTL_SYSFS /proc/mounts; then
umount $FUSECTL_SYSFS >/dev/null 2>&1 || eend $?
fi
eend
}