3 # fuse-pl Start FUSE support on PlanetLab
6 # description: Start FUSE support on PlanetLab
9 # Source function library.
10 . /etc/init.d/functions
12 : ${UTIL_VSERVER_VARS:=`echo /usr/lib*/util-vserver/util-vserver-vars`}
13 test -e "$UTIL_VSERVER_VARS" || {
14 echo "Can not find util-vserver installation; aborting..."
17 . "$UTIL_VSERVER_VARS"
20 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
21 MOUNTPOINT=/sys/fs/fuse/connections
26 # stolen from the /etc/init.d/fuse that comes with the fuse source
27 if ! grep -qw fuse /proc/filesystems; then
28 echo -n "Loading fuse module"
29 if ! modprobe fuse >/dev/null 2>&1; then
36 if grep -qw fusectl /proc/filesystems && \
37 ! grep -qw $MOUNTPOINT /proc/mounts; then
38 echo -n "Mounting fuse control filesystem"
39 if ! mount -t fusectl fusectl $MOUNTPOINT >/dev/null 2>&1; then
48 # To enable FUSE for existing slices, copy the FUSE device
50 if [ ! -e /dev/fuse ]; then
51 echo "No FUSE device! Exiting."
54 for slice in `ls $__CONFDIR`; do
55 cp -a /dev/fuse $__DEFAULT_VSERVERDIR/$slice/dev/ > /dev/null 2>&1
61 echo $"Usage: $0 {start|restart|stop}"