Added fuse-2.8.1 build template.

--HG--
extra : convert_revision : 40572a03b6891841f12b408c746ef00df86ce370
This commit is contained in:
Juan RP
2009-11-30 07:35:37 +01:00
parent 53a8e6d10d
commit 05d506a28b
4 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
#!/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
}