Added fuse-2.8.1 build template.
--HG-- extra : convert_revision : 40572a03b6891841f12b408c746ef00df86ce370
This commit is contained in:
30
srcpkgs/fuse/files/fuse.rc
Normal file
30
srcpkgs/fuse/files/fuse.rc
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user