6 # fuse-pl Start FUSE support on PlanetLab
9 # description: Start FUSE support on PlanetLab
13 # Source function library.
14 . /etc/init.d/functions
16 : ${UTIL_VSERVER_VARS:=`echo /usr/lib*/util-vserver/util-vserver-vars`}
17 test -e "$UTIL_VSERVER_VARS" || {
18 echo "Can not find util-vserver installation; aborting..."
21 . "$UTIL_VSERVER_VARS"
24 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
25 MOUNTPOINT=/sys/fs/fuse/connections
30 # stolen from the /etc/init.d/fuse that comes with the fuse source
31 if ! grep -qw fuse /proc/filesystems; then
32 echo -n "Loading fuse module"
33 if ! modprobe fuse >/dev/null 2>&1; then
40 if grep -qw fusectl /proc/filesystems && \
41 ! grep -qw $MOUNTPOINT /proc/mounts; then
42 echo -n "Mounting fuse control filesystem"
43 if ! mount -t fusectl fusectl $MOUNTPOINT >/dev/null 2>&1; then
52 # To enable FUSE for existing slices, copy the FUSE device
54 if [ ! -e /dev/fuse ]; then
55 echo "No FUSE device! Exiting."
58 for slice in `ls $__CONFDIR`; do
59 cp -a /dev/fuse $__DEFAULT_VSERVERDIR/$slice/dev/ > /dev/null 2>&1
65 echo $"Usage: $0 {start|restart|stop}"